From d60a0a09498067e386b1c28892a81cc46f2ad962 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 3 Dec 2020 12:36:58 +0100 Subject: [PATCH] Fix ice melt not cause surrounding nodes to update --- mods/ITEMS/mcl_core/functions.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index 847b9700..0d9a1f60 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -1416,7 +1416,7 @@ function mcl_core.check_vines_supported(pos, node) return supported end --- Melt ice at pos. mcl_core:ice MUST be a post if you call this! +-- Melt ice at pos. mcl_core:ice MUST be at pos if you call this! function mcl_core.melt_ice(pos) -- Create a water source if ice is destroyed and there was something below it local below = {x=pos.x, y=pos.y-1, z=pos.z} @@ -1427,6 +1427,17 @@ function mcl_core.melt_ice(pos) else minetest.remove_node(pos) end + local neighbors = { + {x=-1, y=0, z=0}, + {x=1, y=0, z=0}, + {x=0, y=-1, z=0}, + {x=0, y=1, z=0}, + {x=0, y=0, z=-1}, + {x=0, y=0, z=1}, + } + for n=1, #neighbors do + minetest.check_single_for_falling(vector.add(pos, neighbors[n])) + end end ---- FUNCTIONS FOR SNOWED NODES ----