1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00: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 --Loop through all connected players
for playerName,playerInfo in pairs(players) do for playerName,playerInfo in pairs(players) do
local player = minetest.get_player_by_name(playerName) local player = minetest.get_player_by_name(playerName)
if not player then return end
local pos = player:getpos() local pos = player:getpos()
if player ~= nil then if player ~= nil then
-- From playerplus : -- From playerplus :