mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-28 04:40:22 +02:00
Fix some warnings.
Also fixes the failing travis checks.
This commit is contained in:
@ -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},
|
||||
|
Reference in New Issue
Block a user