Seriously, if I fuck up simple "if" conditions like this, I should go to bed. Fixes #1 now for reals.
parent
e9de7f4a46
commit
449a819b70
|
@ -109,8 +109,8 @@ function SWEP:Disguise(entity)
|
||||||
// Make sure the new model is actually marked as a prop
|
// Make sure the new model is actually marked as a prop
|
||||||
if (
|
if (
|
||||||
!string.sub(string.lower(entity:GetClass()), 1, 5) == "prop_"
|
!string.sub(string.lower(entity:GetClass()), 1, 5) == "prop_"
|
||||||
&& !string.sub(string.lower(entity:GetClass()), -5, 5) == "_prop"
|
|| !string.sub(string.lower(entity:GetClass()), -5, 5) == "_prop"
|
||||||
&& string.find(string.lower(entity:GetClass()), "_prop_") == nil
|
|| string.find(string.lower(entity:GetClass()), "_prop_") == nil
|
||||||
) then return false end
|
) then return false end
|
||||||
|
|
||||||
local physobj = entity:GetPhysicsObject()
|
local physobj = entity:GetPhysicsObject()
|
||||||
|
|
Loading…
Reference in New Issue