fix crash

This commit is contained in:
AFCMS 2021-05-05 23:06:04 +02:00
parent 451a59c8a8
commit 14c19c915f
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ function mcl_sponges.absorb(pos)
for k=-3,3 do
pos = {x=pos.x+i, y=pos.y+j, z=pos.z+k}
node = minetest.get_node(pos)
for name,def in mcl_sponges.registered_sponges do
for name,def in pairs(mcl_sponges.registered_sponges) do
if minetest.get_item_group(node.name, def.liquidgroup) ~= 0 then
minetest.add_node(pos, {name="air"})
change = true