Update lua/autorun/server/sv_spawn_protection.lua

Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
This commit is contained in:
Redox 2021-12-04 01:01:14 +01:00
parent 77bfac280e
commit b721f7444a

View File

@ -213,9 +213,9 @@ end
local function spawnProtectionMoveCheck( ply, keyCode )
if playerIsDisablingSpawnProtection( ply ) then return end
if not playerHasSpawnProtection( ply ) then return end
if keyVoidsSpawnProtection[ keyCode ] then
delayRemoveSpawnProtection( ply )
end
if not keyVoidsSpawnProtection[ keyCode ] then return end
delayRemoveSpawnProtection( ply )
end
-- Prevents damage if a player has spawn protection