1
0
鏡像自 https://github.com/minetest-mods/moreblocks.git 已同步 2025-12-18 02:05:19 +01:00

Speedup remnant stack calculation

此提交包含在:
kilbith
2015-06-06 12:16:21 +02:00
父節點 7bd98ac02c
當前提交 26799d2263

查看文件

@@ -93,9 +93,10 @@ function circular_saw:get_output_inv(modname, material, amount, max)
for i, t in ipairs(circular_saw.names) do
local cost = circular_saw.cost_in_microblocks[i]
local balance = math.min(math.floor(amount/cost), max)
pos = pos + 1
list[pos] = modname .. ":" .. t[1] .. "_" .. material .. t[2]
.. " " .. math.min(math.floor(amount/cost), max)
.. " " .. balance
end
return list
end