Skip to content

Commit

Permalink
Fixed Either not allowing crates to be spawned
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedTail committed Apr 28, 2024
1 parent dcabf43 commit ac5e636
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/entities/acf_ammo/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ do -- Spawning and Updating --------------------
local function UpdateCrate(Entity, Data, Class, Weapon, Ammo)
local Name, ShortName, WireName = Ammo:GetCrateName()
local Scalable = Class.IsScalable
local Caliber = Either(Scalable, Data.Caliber, Weapon.Caliber)
local WeaponName = Either(Scalable, Caliber .. "mm " .. Class.Name, Weapon.Name)
local WeaponShort = Either(Scalable, Caliber .. "mm" .. Class.ID, Weapon.ID)
local Caliber = Scalable and Data.Caliber or Weapon.Caliber
local WeaponName = Scalable and Caliber .. "mm " .. Class.Name or Weapon.Name
local WeaponShort = Scalable and Caliber .. "mm" .. Class.ID or Weapon.ID

Entity:SetSize(Data.Size)

Expand Down

0 comments on commit ac5e636

Please sign in to comment.