fix crash

This commit is contained in:
AFCMS 2021-05-05 23:36:40 +02:00
parent 75689afdb4
commit d94fc9e696
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ function mcl_sponges.absorb(pos)
end
end
return change, sponge_type
return change, mcl_sponges.registered_sponges[sponge_type].itemname
end
@ -271,7 +271,7 @@ mcl_sponges.register_sponge("riverwater", {
minetest.register_abm({
label = "Sponge water absorbtion",
nodenames = { "mcl_sponges:sponge" },
neighbors = { "group:water" },
neighbors = { "group:water" }, -- FIXME
interval = 1,
chance = 1,
action = function(pos)