Removed more unnecessary code

This commit is contained in:
JoseDouglas26 2024-06-07 19:31:15 -03:00
parent 23c65451ab
commit e27d1455e8
1 changed files with 0 additions and 27 deletions

View File

@ -121,30 +121,3 @@ for _, row in ipairs(block.dyes) do
})
end
end
-- When water touches concrete powder, it turns into concrete of the same color
minetest.register_abm({
label = "Concrete powder hardening",
interval = 1,
chance = 1,
nodenames = {"group:concrete_powder"},
neighbors = {"group:water"},
action = function(pos, node)
local harden_to = minetest.registered_nodes[node.name]._mcl_colorblocks_harden_to
-- It should be impossible for harden_to to be nil, but a Minetest bug might call
-- the ABM on the new concrete node, which isn't part of this ABM!
if harden_to then
node.name = harden_to
--Fix "float" group not lowering concrete into the water by 1.
local water_pos = { x = pos.x, y = pos.y-1, z = pos.z }
local water_node = minetest.get_node(water_pos)
if minetest.get_item_group(water_node.name, "water") == 0 then
minetest.set_node(pos, node)
else
minetest.set_node(water_pos,node)
minetest.set_node(pos, {name = "air"})
minetest.check_for_falling(pos) -- Update C. Powder that stacked above so they fall down after setting air.
end
end
end,
})