1
0
mirror of https://github.com/Sokomine/replacer.git synced 2024-11-15 06:10:21 +01:00

Merge pull request #8 from acmgit/master

Fixed Warnings for global Vars.
This commit is contained in:
Sokomine 2021-09-29 23:51:46 +02:00 committed by GitHub
commit a81ce905cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ minetest.register_tool( "replacer:replacer",
return nil;
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 );
--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)
return replacer.replace( itemstack, user, pointed_thing, above );
return replacer.replace( itemstack, user, pointed_thing, false );
end,
})