mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
[mcl_chests] fix warnings
This commit is contained in:
parent
f8ee9c79c2
commit
f1c6c3b285
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ minetest.register_entity("mcl_chests:chest", {
|
|||
local playerlist = self.players
|
||||
playerlist[playername] = nil
|
||||
if self.is_open then
|
||||
for _ in pairs(playerlist) do
|
||||
if next(playerlist) then
|
||||
return
|
||||
end
|
||||
self:set_animation("close")
|
||||
|
|
Loading…
Reference in a new issue