Epic fail. Grrr.

master
Icedream 2013-12-21 04:14:05 +01:00
parent 449a819b70
commit e5a04781bf
1 changed files with 3 additions and 3 deletions

View File

@ -108,9 +108,9 @@ function SWEP:Disguise(entity)
// Make sure the new model is actually marked as a prop
if (
!string.sub(string.lower(entity:GetClass()), 1, 5) == "prop_"
|| !string.sub(string.lower(entity:GetClass()), -5, 5) == "_prop"
|| string.find(string.lower(entity:GetClass()), "_prop_") == nil
string.sub(string.lower(entity:GetClass()), 1, 5) != "prop_"
&& string.sub(string.lower(entity:GetClass()), -5, -1) != "_prop"
&& string.find(string.lower(entity:GetClass()), "_prop_") == nil
) then return false end
local physobj = entity:GetPhysicsObject()