Skip to content

ME Bridge getItem() does not trigger error upon disconnection #441

@estafeit

Description

@estafeit

Describe

It's me again, sorry !

All is in title. If using getItem() with a missing cable, getItem() return is empty but it triggers no error. Same beahviour if item is absent in the network. We need to be able to figure the difference between the two !

ie. I'm tring to craft items only if network don't contains more than a given amount. If I cut the cable by mistake, my rig will keep crafting items without limit, thinking there is none in network.

For now one can do a listItems() first to check if inventory is empty, but that's not good, performance-wise

EDIT: On second thought, listItems() should return an error too ^^

Steps to reproduce

Use getItem() on a disconnected ME bridge

Multiplayer?

No

Version

1.19.2-0.7.27r (Latest 1.19.2)

Minecraft, Forge and maybe other related mods versions

mc 1.19.2, atm 8

Screenshots or Videos

No response

Crashlog/log

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions