1
0
Fork 0

[mcl_chests] fix warnings

This commit is contained in:
AFCMS 2021-05-27 09:41:20 +02:00
parent f8ee9c79c2
commit f1c6c3b285
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ minetest.register_entity("mcl_chests:chest", {
local playerlist = self.players local playerlist = self.players
playerlist[playername] = nil playerlist[playername] = nil
if self.is_open then if self.is_open then
for _ in pairs(playerlist) do if next(playerlist) then
return return
end end
self:set_animation("close") self:set_animation("close")