fix crash nether if player cancel join server

"/nether/portal.lua:243: attempt to index a nil value"
master
crabman77 2016-03-06 11:04:14 +01:00
parent 5caa303f7d
commit 59ce0d7378
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ if nether_prisons then
-- set background when player joins
minetest.register_on_joinplayer(function(player)
minetest.after(0, function(player)
if player:getpos().y < nether.start then
if player and player:getpos() and player:getpos().y < nether.start then
update_background(player, true)
end
end, player)