From: OgelGames Date: Thu, 28 Nov 2019 02:01:19 +0000 (+1100) Subject: Coral 'on place': Pass node to 'on rightclick', not node name X-Git-Tag: 5.2.0~33 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f764bf447e3f40d99e6de69d7d7510616dde3ad;p=oweals%2Fminetest_game.git Coral 'on place': Pass node to 'on rightclick', not node name --- diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 611e6c89..c752d3bf 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -2031,7 +2031,7 @@ local function coral_on_place(itemstack, placer, pointed_thing) local def_under = minetest.registered_nodes[node_under.name] if def_under and def_under.on_rightclick and not placer:get_player_control().sneak then - return def_under.on_rightclick(pos_under, node_under.name, + return def_under.on_rightclick(pos_under, node_under, placer, itemstack, pointed_thing) or itemstack end