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:
3669ca0
)
Fix missing argument for on_rotate
author
Novatux
<nathanael.courant@laposte.net>
Thu, 14 May 2015 14:07:19 +0000
(16:07 +0200)
committer
Novatux
<nathanael.courant@laposte.net>
Thu, 14 May 2015 14:07:19 +0000
(16:07 +0200)
mods/screwdriver/init.lua
patch
|
blob
|
history
diff --git
a/mods/screwdriver/init.lua
b/mods/screwdriver/init.lua
index bccc9fbca2157703f07caffa406f64bf7e01b941..0c77754e40a49a7ad82a056329ac46f79d97d465 100644
(file)
--- a/
mods/screwdriver/init.lua
+++ b/
mods/screwdriver/init.lua
@@
-53,7
+53,7
@@
local function screwdriver_handler(itemstack, user, pointed_thing, mode)
-- Copy pos and node because callback can modify it
local result = ndef.on_rotate(vector.new(pos),
{name = node.name, param1 = node.param1, param2 = node.param2},
- user, mode)
+ user, mode
, new_param2
)
if result == false then -- Disallow rotation
return
elseif result == true then