mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 22:22:25 +01:00
Coral 'on place': Pass node to 'on rightclick', not node name
This commit is contained in:
parent
00a8bd521a
commit
0f764bf447
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user