mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-11-05 18:00:32 +01:00
Circular_saw limit in inventory input
Use for multiply block in circular saw.
This commit is contained in:
parent
0e63715989
commit
a14f0145c2
|
@ -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
|
for i,v in ipairs(circular_saw.known_stairs) do
|
||||||
|
|
||||||
if(circular_saw.known_stairs[ i ] == stack:get_name()) then
|
if(circular_saw.known_stairs[ i ] == stack:get_name()) and inv:room_for_item("input", stack) then
|
||||||
return stack:get_count();
|
return stack:get_count();
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user