master
E. Almqvist 5 years ago
parent d285317364
commit 8c69f084fa
  1. 1
      gamemode/engine/lib/server/sv_property.lua

@ -83,6 +83,7 @@ end
function Quantum.Server.Property.PlayerSwitchLock( pl, doorent ) function Quantum.Server.Property.PlayerSwitchLock( pl, doorent )
local zone = Quantum.Server.Zone.GetCurrentZone( pl:GetPos() ) local zone = Quantum.Server.Zone.GetCurrentZone( pl:GetPos() )
if( zone == nil ) then return end
if( Quantum.Server.Zone.DoorIsInZone(doorent, zone.id) ) then if( Quantum.Server.Zone.DoorIsInZone(doorent, zone.id) ) then
local prop = Quantum.Server.Property.Get( zone.property ) local prop = Quantum.Server.Property.Get( zone.property )
if( prop.owner == pl || pl:IsSuperAdmin() ) then if( prop.owner == pl || pl:IsSuperAdmin() ) then

Loading…
Cancel
Save