Update chiseling_machine.lua

This commit is contained in:
minefaco 2021-11-20 18:03:07 -05:00 committed by GitHub
parent 338bf6462d
commit 5671958e47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,7 +44,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 then
if has_stripped and dstcount < max_stack and dstcount+count<max_stack then
minetest.chat_send_all(dstcount)
local stripped =mod_name..":".."stripped_"..node_name
inv:add_item("dst", stripped.." "..count)