forked from mtcontrib/replacer
Fixed Warnings for global Vars.
This commit is contained in:
parent
a535be2382
commit
c4fed6eb5c
4
init.lua
4
init.lua
@ -104,7 +104,7 @@ minetest.register_tool( "replacer:replacer",
|
|||||||
return nil;
|
return nil;
|
||||||
end
|
end
|
||||||
|
|
||||||
local pos = minetest.get_pointed_thing_position( pointed_thing, under );
|
local pos = minetest.get_pointed_thing_position( pointed_thing, false ); -- node under
|
||||||
local node = minetest.get_node_or_nil( pos );
|
local node = minetest.get_node_or_nil( pos );
|
||||||
|
|
||||||
--minetest.chat_send_player( name, " Target node: "..minetest.serialize( node ).." at pos "..minetest.serialize( pos )..".");
|
--minetest.chat_send_player( name, " Target node: "..minetest.serialize( node ).." at pos "..minetest.serialize( pos )..".");
|
||||||
@ -124,7 +124,7 @@ minetest.register_tool( "replacer:replacer",
|
|||||||
|
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
|
|
||||||
return replacer.replace( itemstack, user, pointed_thing, above );
|
return replacer.replace( itemstack, user, pointed_thing, false );
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user