Checking URS compatibility by removing PLAYER:CheckLimit()

This commit is contained in:
Mista-Tea 2018-04-28 15:36:44 -06:00 committed by GitHub
parent 392ff9201e
commit 09d6d7d126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -677,7 +677,7 @@ function TOOL:LeftClick( tr, isRightClick )
local stackerEntsSpawned = self:GetNumberPlayerEnts()
if ( maxPerPlayer >= 0 and stackerEntsSpawned >= maxPerPlayer ) then self:SendError( ("%s (%s)"):format(L(prefix.."error_max_per_player", localify.GetLocale( self:GetOwner() )), maxPerPlayer) ) break end
-- check if the player has exceeded the sbox_maxprops cvar
if ( not self:GetSWEP():CheckLimit( "props" ) ) then break end
--if ( not self:GetSWEP():CheckLimit( "props" ) ) then break end
-- check if external admin mods are blocking this entity
if ( hook.Run( "PlayerSpawnProp", ply, entMod ) == false ) then break end