mirror of
https://github.com/Sokomine/replacer.git
synced 2025-07-20 00:40:24 +02:00
Compare commits
3 Commits
master
...
00a1c21b3e
Author | SHA1 | Date | |
---|---|---|---|
00a1c21b3e | |||
c0fa835364 | |||
95ce57d6e5 |
3
init.lua
3
init.lua
@ -108,7 +108,7 @@ minetest.register_tool( "replacer:replacer",
|
||||
-- just place the stored node if no new one is to be selected
|
||||
if( not( keys["sneak"] ) and not( keys["aux1"])) then
|
||||
|
||||
return replacer.replace( itemstack, placer, pointed_thing, 0 ); end
|
||||
return replacer.replace( itemstack, placer, pointed_thing, true ); end
|
||||
|
||||
|
||||
if( pointed_thing.type ~= "node" ) then
|
||||
@ -272,3 +272,4 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
minetest.log("action", "[replacer] loaded.")
|
||||
|
@ -190,7 +190,7 @@ replacer.add_circular_saw_receipe = function( node_name, receipes )
|
||||
if( not( help ) or #help ~= 2 or help[1]=='stairs') then
|
||||
return;
|
||||
end
|
||||
help2 = help[2]:split('_');
|
||||
local help2 = help[2]:split('_');
|
||||
if( not( help2 ) or #help2 < 2 or (help2[1]~='micro' and help2[1]~='panel' and help2[1]~='stair' and help2[1]~='slab')) then
|
||||
return;
|
||||
end
|
||||
|
Reference in New Issue
Block a user