projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00a8bd5
)
Coral 'on place': Pass node to 'on rightclick', not node name
author
OgelGames
<olliverdc28@gmail.com>
Thu, 28 Nov 2019 02:01:19 +0000
(13:01 +1100)
committer
Paramat
<paramat@users.noreply.github.com>
Thu, 28 Nov 2019 02:01:19 +0000
(
02:01
+0000)
mods/default/nodes.lua
patch
|
blob
|
history
diff --git
a/mods/default/nodes.lua
b/mods/default/nodes.lua
index 611e6c89d473343b276200d3beb6f5ad07c71e26..c752d3bf0028ebcd6b077b6947073eea55e5128c 100644
(file)
--- 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