1
0
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:
Diego Martínez
2017-03-05 04:50:25 -03:00
committed by paramat
parent 28ecb3b261
commit 496521f4a1
3 changed files with 15 additions and 3 deletions

View File

@ -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},