From a5b7cf4db3e99296833567c2e5df30690f0e8dcb Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 20 Apr 2024 07:57:09 +0100 Subject: [PATCH] midas ability only works on "normal" type nodes --- nssm_api.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nssm_api.lua b/nssm_api.lua index f5e898d..a6d124a 100644 --- a/nssm_api.lua +++ b/nssm_api.lua @@ -380,11 +380,13 @@ function nssm:midas_ability( --ability to transform every blocks it touches in local p = {x = pos.x + dx, y = pos.y + dy, z = pos.z + dz} local n = minetest.get_node(p).name + local d = minetest.registered_nodes[n] - if minetest.get_item_group(n, "unbreakable") == 1 - or minetest.is_protected(p, "") or n == "air" - or (n == "bones:bones" and not nssm:affectbones(self)) - or n == m_block then + if d.drawtype ~= "normal" or n == m_block + or minetest.get_item_group(n, "unbreakable") == 1 + or minetest.is_protected(p, "") + or (n == "bones:bones" and not nssm:affectbones(self)) then + -- do nothing else minetest.set_node(p, {name = m_block}) end