From e27d1455e8649b5d85d18f5b2cfd2296c8d50c34 Mon Sep 17 00:00:00 2001 From: JoseDouglas26 Date: Fri, 7 Jun 2024 19:31:15 -0300 Subject: [PATCH] Removed more unnecessary code --- mods/ITEMS/mcl_colorblocks/init.lua | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/mods/ITEMS/mcl_colorblocks/init.lua b/mods/ITEMS/mcl_colorblocks/init.lua index 9f49b8712..416adf8dc 100644 --- a/mods/ITEMS/mcl_colorblocks/init.lua +++ b/mods/ITEMS/mcl_colorblocks/init.lua @@ -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, -})