Fix: cozylights shutdown
This commit is contained in:
parent
0348dc2703
commit
40d400da10
1 changed files with 3 additions and 0 deletions
|
@ -597,6 +597,9 @@ minetest.register_globalstep(function(dtime)
|
|||
else
|
||||
for _,cozyplayer in pairs(cozylights.cozyplayers) do
|
||||
local player = minetest.get_player_by_name(cozyplayer.name)
|
||||
if not player == nil then
|
||||
goto next_player
|
||||
end
|
||||
local pos = vector.round(player:getpos())
|
||||
pos.y = pos.y + 1
|
||||
-- simple hash, collision will result in a rare minor barely noticeable glitch if a user teleports:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue