Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Coral 'on place': Pass node to 'on rightclick', not node name
  • Loading branch information
OgelGames authored and paramat committed Nov 28, 2019
1 parent 00a8bd5 commit 0f764bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/default/nodes.lua
Expand Up @@ -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
Expand Down

0 comments on commit 0f764bf

Please sign in to comment.