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:
541b2d7
)
Doors: Pass pointed_thing to on_rightclick() callback
author
Auke Kok
<sofar@foo-projects.org>
Sun, 29 May 2016 23:46:34 +0000
(16:46 -0700)
committer
paramat
<mat.gregory@virginmedia.com>
Mon, 30 May 2016 10:55:12 +0000
(11:55 +0100)
This is an omission technicality. The callee should be able
to trust this isn't `nil`
mods/doors/init.lua
patch
|
blob
|
history
diff --git
a/mods/doors/init.lua
b/mods/doors/init.lua
index 302eb08f5ceb99a47a2797b83ba40b73d95b2ef6..b1bf123c23ed47dab21b1cbbfc3067caf5cf761c 100644
(file)
--- a/
mods/doors/init.lua
+++ b/
mods/doors/init.lua
@@
-254,7
+254,7
@@
function doors.register(name, def)
local pdef = minetest.registered_nodes[node.name]
if pdef and pdef.on_rightclick then
return pdef.on_rightclick(pointed_thing.under,
- node, placer, itemstack)
+ node, placer, itemstack
, pointed_thing
)
end
if pdef and pdef.buildable_to then