1
0
mirror of https://github.com/Sokomine/replacer.git synced 2025-07-20 00:40:24 +02:00

aux1 key works now as well instead of only sneak key for storing a new pattern

This commit is contained in:
Sokomine
2021-09-29 20:19:28 +02:00
parent 7bfcb73607
commit c030a3beb8
3 changed files with 3 additions and 4 deletions

View File

@ -94,7 +94,7 @@ minetest.register_tool( "replacer:replacer",
local keys=placer:get_player_control();
-- just place the stored node if now new one is to be selected
if( not( keys["sneak"] )) then
if( not( keys["sneak"] ) and not( keys["aux1"])) then
return replacer.replace( itemstack, placer, pointed_thing, 0 ); end
@ -265,4 +265,3 @@ minetest.register_craft({
}
})