forked from minetest-mods/moreblocks
Merge pull request #11 from Jat15/patch-2
circular_saw limit in inventory input.
This commit is contained in:
commit
396945ed3e
|
@ -194,7 +194,7 @@ 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user