Fix some warnings.
Also fixes the failing travis checks.
This commit is contained in:
parent
28ecb3b261
commit
496521f4a1
3 changed files with 15 additions and 3 deletions
|
@ -52,7 +52,8 @@ screwdriver.handler = function(itemstack, user, pointed_thing, mode, uses)
|
|||
local new_param2 = preservePart + rotationPart
|
||||
local should_rotate = true
|
||||
|
||||
if ndef and ndef.on_rotate then -- Node provides a handler, so let the handler decide instead if the node can be rotated
|
||||
-- Node provides a handler, so let the handler decide instead if the node can be rotated
|
||||
if ndef and ndef.on_rotate then
|
||||
-- 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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue