1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-19 17:57:39 +00:00

slide out for UI + turtle.has

This commit is contained in:
kepler155c@gmail.com
2017-12-11 11:31:41 -05:00
parent a8a4ceb85d
commit 0df22efdc2
2 changed files with 39 additions and 1 deletions

View File

@@ -786,6 +786,11 @@ function turtle.getSummedInventory()
return t
end
function turtle.has(item, count)
local slot = turtle.getSummedInventory()[item]
return slot and slot.count >= (count or 1)
end
function turtle.getFilledSlots(startSlot)
startSlot = startSlot or 1