-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Describe
getWorkOrderResources has some wrong parameter names and types
When looking at the parameter tables and the output from my code
col_box = peripheral.find("colony_integrator")
function activeJobs()
row = 3
work_orders = col_box.getWorkOrders()
for k, order in ipairs(work_orders) do
local resources = col_box.getWorkOrderResources(k)
for i, blk in ipairs(resources) do
print("Resource #" .. i .. ":")
-- Print all keys and values in this resource
for key, value in pairs(blk) do
print(" " .. key .. " = " .. tostring(value))
end
print() -- blank line for readability
end
end
end
activeJobs()I can see that
- item is not a string but a table
- needed is actually called needs
- delivering is a integer
Steps to reproduce
- Run my code and see the output
- Compare results with docs
Direct URL
https://docs.advanced-peripherals.de/latest/peripherals/colony_integrator/#getworkorderresources
Screenshots or Videos
https://github.com/user-attachments/assets/88570711-e744-414c-bc24-eeb34304a099
Metadata
Metadata
Assignees
Labels
No labels