1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

Adding security on esprint

This commit is contained in:
LeMagnesium 2014-12-11 19:18:34 +01:00
parent e816fb5f42
commit 06ff688a3e

View File

@ -40,6 +40,7 @@ minetest.register_globalstep(function(dtime)
--Loop through all connected players
for playerName,playerInfo in pairs(players) do
local player = minetest.get_player_by_name(playerName)
if not player then return end
local pos = player:getpos()
if player ~= nil then
-- From playerplus :