Update chiseling_machine.lua

This commit is contained in:
minefaco 2021-11-20 18:36:24 -05:00 committed by GitHub
parent a6231252d2
commit 57dc805816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,7 +42,7 @@ minetest.register_node("stripped_tree:chiseling_machine", {
local mod_name, node_name = unpack(nodename:split(":"))
local has_stripped = minetest.registered_nodes[mod_name..":".."stripped_"..node_name]
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
inv:add_item("dst", stripped.." "..count)
inv:add_item("dst", "default:tree_bark "..count.."")