mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-05 10:00:26 +01:00
fix crash nether if player cancel join server
"/nether/portal.lua:243: attempt to index a nil value"
This commit is contained in:
parent
bf269a6574
commit
a3935dee12
|
@ -240,7 +240,7 @@ if nether_prisons then
|
||||||
-- set background when player joins
|
-- set background when player joins
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
minetest.after(0, 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)
|
update_background(player, true)
|
||||||
end
|
end
|
||||||
end, player)
|
end, player)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user