From 985c035f48a0e6797c8c14d40244a074df651fcc Mon Sep 17 00:00:00 2001 From: thecraftianman <64441307+thecraftianman@users.noreply.github.com> Date: Mon, 19 Feb 2024 22:44:30 -0500 Subject: [PATCH] Fix IsLegal tests --- lua/acf/core/validation_sv.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/acf/core/validation_sv.lua b/lua/acf/core/validation_sv.lua index d764540f3..0cb3bfa12 100644 --- a/lua/acf/core/validation_sv.lua +++ b/lua/acf/core/validation_sv.lua @@ -35,7 +35,11 @@ function ACF.IsLegal(Entity) local Phys = Entity:GetPhysicsObject() - if not IsValid(Entity.ACF.PhysObj) or Entity.ACF.PhysObj ~= Phys then + if not IsValid(Entity.ACF.PhysObj) then + Entity.ACF.PhysObj = Phys + end + + if Entity.ACF.PhysObj ~= Phys then if Phys:GetVolume() then Entity.ACF.PhysObj = Phys -- Updated PhysObj else