From c20e3918ef3fa6d5ff73774cb9294905792b024e Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sun, 4 Aug 2019 17:30:26 -0600 Subject: [PATCH] Pearls don't grow on falling nodes --- df_mapitems/cave_pearls.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/df_mapitems/cave_pearls.lua b/df_mapitems/cave_pearls.lua index ba849d7..7ad381a 100644 --- a/df_mapitems/cave_pearls.lua +++ b/df_mapitems/cave_pearls.lua @@ -103,9 +103,12 @@ local is_valid_mounting_node = function(c_node) return valid_nodes[c_node] end local def = minetest.registered_nodes[minetest.get_name_from_content_id(c_node)] - if def ~= nil and (def.drawtype == "normal" or def.drawtype == nil) and (not def.buildable_to) then - valid_nodes[c_node] = true - return true + if def ~= nil + and (def.drawtype == "normal" or def.drawtype == nil) + and not def.buildable_to + and not (def.groups and def.groups.falling_node) then + valid_nodes[c_node] = true + return true end valid_nodes[c_node] = false return false