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:
3
init.lua
3
init.lua
@ -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({
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user