From eba9012d0543b9c37c2ca313dbc1178b0cc66944 Mon Sep 17 00:00:00 2001 From: Zemtzov7 <72821250+zmv7@users.noreply.github.com> Date: Sat, 16 Sep 2023 17:52:07 +0500 Subject: [PATCH] Fix coral and kelp duping with mesecons' sticky piston (#3062) --- mods/default/nodes.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 99d0b34f..947dba6c 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -2024,7 +2024,7 @@ minetest.register_node("default:sand_with_kelp", { return itemstack end, - after_destruct = function(pos, oldnode) + after_dig_node = function(pos, oldnode, oldmetadata, digger) minetest.set_node(pos, {name = "default:sand"}) end }) @@ -2099,7 +2099,7 @@ minetest.register_node("default:coral_green", { on_place = coral_on_place, - after_destruct = function(pos, oldnode) + after_dig_node = function(pos, oldnode, oldmetadata, digger) minetest.set_node(pos, {name = "default:coral_skeleton"}) end, }) @@ -2130,7 +2130,7 @@ minetest.register_node("default:coral_pink", { on_place = coral_on_place, - after_destruct = function(pos, oldnode) + after_dig_node = function(pos, oldnode, oldmetadata, digger) minetest.set_node(pos, {name = "default:coral_skeleton"}) end, }) @@ -2161,7 +2161,7 @@ minetest.register_node("default:coral_cyan", { on_place = coral_on_place, - after_destruct = function(pos, oldnode) + after_dig_node = function(pos, oldnode, oldmetadata, digger) minetest.set_node(pos, {name = "default:coral_skeleton"}) end, })