Add an upper cap to circular saw max.

This commit is contained in:
Calinou 2014-07-20 21:58:12 +02:00
parent c617fb57af
commit 28741bf242

View File

@ -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: