Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ME Bridge using bytes for internal storage and item count for external storage. #539

Open
SirEndii opened this issue Dec 21, 2023 · 2 comments
Assignees
Labels
Milestone

Comments

@SirEndii
Copy link
Member

SirEndii commented Dec 21, 2023

Describe

Using the function getUsedItemStorage (And the other related ones) will return different results depending on if the item is stored in the disk or the chest.

If I store 64 sticks in a disk, the function returns 520 since the sticks occupy 520 bytes.
image

image

Storing them in a chest using the storage bus will result in a different value, since the chest does not store the items as bytes like the drives.

image

image

Multiplayer?

No

Version

Own compiled build.

Minecraft, Forge and maybe other related mods versions

43.3.0 1.19.2

Screenshots or Videos

No response

Crashlog/log

No response

@SirEndii
Copy link
Member Author

Fixed by separating the external functions and the internal functions. The external functions will return a number in millibuckets or item count. The internal functions will return them as used/available bytes.

This was discussed with one of the AE2 developers

@SirEndii
Copy link
Member Author

SirEndii commented May 7, 2024

Not sure why I closed this...

@SirEndii SirEndii reopened this May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: To Be Released
Development

No branches or pull requests

1 participant