Adding security on esprint

This commit is contained in:
LeMagnesium 2014-12-11 19:18:34 +01:00
parent e816fb5f42
commit 06ff688a3e
1 changed files with 1 additions and 0 deletions

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 :