Skip to content

Commit

Permalink
Fix missing argument for on_rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekdohibs committed May 14, 2015
1 parent 3669ca0 commit eae3740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/screwdriver/init.lua
Expand Up @@ -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
Expand Down

0 comments on commit eae3740

Please sign in to comment.