diff --git a/nether/portal.lua b/nether/portal.lua index ffbb47d..b23d899 100644 --- a/nether/portal.lua +++ b/nether/portal.lua @@ -238,7 +238,8 @@ if nether_prisons then -- set background when player joins minetest.register_on_joinplayer(function(player) minetest.after(0, function(player) - if player and player:getpos() and player:getpos().y < nether.start then + if player + and player:getpos().y < nether.start then update_background(player, true) end end, player)