MightyPirates / OpenComputers

Home of the OpenComputers mod for Minecraft.
https://oc.cil.li
Other
1.59k stars 430 forks source link

Robot - inventory controller - Inventory not found #3392

Closed Glastis closed 3 years ago

Glastis commented 3 years ago

Opencomputers: OpenComputers-MC1.12.2-1.7.5.192 MC version: 1.12.2

-- test.lua
local component = require("component")
local sides = require("sides")

print(component.inventory_controller.getInventorySize(sides.up))
print(component.inventory_controller.getInventorySize(sides.down))

image image

No inventory found even with a vanilla chest and droppers. Can do a robot.dropDown() without trouble. Tested on multiple robots with a fresh install of OpenOs.

Nothing found in logs

payonel commented 3 years ago

does not repro for me. maybe retry with our dev build

Glastis commented 3 years ago

Late reply, in case of someone having the same problem.

Found out it was due to Minecolonies villages.

Still don't know why computercraft/other mods does not have this behaviors, probably due to the fake player. Well, this is definitely not a OC bug, I don't know if it is even possible to add a error message.