From 2a3e553b9c138f7faa996e46f5f0a8440880e1ed 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 2a5c2ba..ffbb47d 100644 --- a/nether/portal.lua +++ b/nether/portal.lua @@ -238,7 +238,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)