forked from minetest-mods/moreblocks
Add an upper cap to circular saw max.
This commit is contained in:
parent
c617fb57af
commit
28741bf242
|
@ -61,9 +61,7 @@ function circular_saw:get_cost(inv, stackname)
|
|||
end
|
||||
|
||||
function circular_saw:get_output_inv(modname, material, amount, max)
|
||||
if (not max or max < 1) then
|
||||
max = 99
|
||||
end
|
||||
if (not max or max < 1 or max > 99) then max = 99 end
|
||||
|
||||
local list = {}
|
||||
-- If there is nothing inside, display empty inventory:
|
||||
|
|
Loading…
Reference in New Issue
Block a user