1
0
mirror of https://github.com/Sokomine/replacer.git synced 2024-11-15 14:20:21 +01:00
merged PR on github while working locally
This commit is contained in:
Sokomine 2021-09-29 23:52:45 +02:00
commit 889885049e

View File

@ -107,7 +107,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 )..".");
@ -133,7 +133,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,
}) })