Advanced Peripherals

Advanced Peripherals

29M Downloads

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

SirEndii opened this issue ยท 2 comments

commented

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

commented

Not sure why I closed this...

commented

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