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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user