From 59ce0d73789fd725844c5f5747fc5d25341150fa Mon Sep 17 00:00:00 2001 From: crabman77 Date: Sun, 6 Mar 2016 11:04:14 +0100 Subject: [PATCH] fix crash nether if player cancel join server "/nether/portal.lua:243: attempt to index a nil value" --- nether/portal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nether/portal.lua b/nether/portal.lua index 4a9bda1..5bcbf5a 100755 --- a/nether/portal.lua +++ b/nether/portal.lua @@ -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)