Circular_saw limit in inventory input

Use for multiply block in circular saw.
This commit is contained in:
Jat15 2013-12-27 15:56:38 +01:00
parent 0e63715989
commit a14f0145c2
1 changed files with 3 additions and 3 deletions

View File

@ -191,9 +191,9 @@ circular_saw.allow_metadata_inventory_put = function(pos, listname, index, stack
for i,v in ipairs(circular_saw.known_stairs) do
if(circular_saw.known_stairs[ i ] == stack:get_name()) then
return stack:get_count();
end
if(circular_saw.known_stairs[ i ] == stack:get_name()) and inv:room_for_item("input", stack) then
return stack:get_count();
end
end
return 0;