Seriously, if I fuck up simple "if" conditions like this, I should go to bed. Fixes #1 now for reals.

master
Icedream 2013-12-21 04:04:10 +01:00
parent e9de7f4a46
commit 449a819b70
1 changed files with 2 additions and 2 deletions

View File

@ -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()