mirror of
https://github.com/minefaco/stripped_tree.git
synced 2024-10-04 00:33:10 +02:00
Update chiseling_machine.lua
This commit is contained in:
parent
a6231252d2
commit
57dc805816
@ -42,7 +42,7 @@ minetest.register_node("stripped_tree:chiseling_machine", {
|
|||||||
local mod_name, node_name = unpack(nodename:split(":"))
|
local mod_name, node_name = unpack(nodename:split(":"))
|
||||||
local has_stripped = minetest.registered_nodes[mod_name..":".."stripped_"..node_name]
|
local has_stripped = minetest.registered_nodes[mod_name..":".."stripped_"..node_name]
|
||||||
local dstcount = inv:get_stack("dst",1):get_count()
|
local dstcount = inv:get_stack("dst",1):get_count()
|
||||||
if has_stripped and dstcount < max_stack and dstcount+count<max_stack then
|
if has_stripped and dstcount < max_stack then
|
||||||
local stripped =mod_name..":".."stripped_"..node_name
|
local stripped =mod_name..":".."stripped_"..node_name
|
||||||
inv:add_item("dst", stripped.." "..count)
|
inv:add_item("dst", stripped.." "..count)
|
||||||
inv:add_item("dst", "default:tree_bark "..count.."")
|
inv:add_item("dst", "default:tree_bark "..count.."")
|
||||||
|
Loading…
Reference in New Issue
Block a user