Fix amalgamation melting in falling node form

This commit is contained in:
Aaron Suen 2022-01-22 16:52:20 -05:00
parent 91e5c615c2
commit a0a14f9195

View File

@ -105,3 +105,19 @@ nodecore.register_aism({
end
end
})
nodecore.register_falling_node_step(function(self)
if not (self.node and self.node.name) then return end
if minetest.get_item_group(self.node.name, "amalgam") <= 0 then return end
local pos = self.object:get_pos()
if (not pos)
or nodecore.quenched(pos)
or not nodecore.buildable_to(pos) then return end
nodecore.set_loud(pos, {name = lavasrc})
self.object:remove()
return true
end)