Skip to content

Commit

Permalink
Fixed error when trying to armor freshly spawned props
Browse files Browse the repository at this point in the history
- Fixed errors related to a missing ENT.EntityMods table when trying to, for example, armor freshly spawned entities.
  • Loading branch information
TwistedTail committed Sep 13, 2024
1 parent 88503cb commit 2ccdc66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/acf/core/validation_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ function ACF.UpdateArea(Entity, PhysObj)
end

function ACF.UpdateThickness(Entity, PhysObj, Area, Ductility)
local EntMods = Entity.EntityMods
local ArmorMod = EntMods.ACF_Armor
local MassMod = EntMods and EntMods.mass
local EntMods = Entity.EntityMods
local ArmorMod = EntMods and EntMods.ACF_Armor
local Thickness = ArmorMod and ArmorMod.Thickness
local MassMod = EntMods and EntMods.mass

if Thickness then
if not MassMod then
Expand Down

0 comments on commit 2ccdc66

Please sign in to comment.