mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-02-17 21:23:44 +01:00
[mcl_chests] fix warnings
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user