AdvancedPeripherals icon indicating copy to clipboard operation
AdvancedPeripherals copied to clipboard

ME bridge `importFluid` method can only import from first slot

Open programmer3481 opened this issue 1 month ago • 0 comments

Describe

the ME bridge peripheral importFluid method (and the importFluidFromPeripheral method) can only import fluids from the first slot in the source tank.

An exception seems to be when the first slot is filled, and there are other slots filled with the same fluid as the first slot, and that fluid is imported; they are able to be imported at once.

The bug is in latest versions of AP in both 1.20.1 and 1.21.1.

The issue is probably not mod fluid storage specific, as the same bugged behavior could be seen using : ME Ingredient Buffer (from ExtendedAE) Basin (from Create, the 2 'input' fluid storages it has seems to be in slots 3 and 4, making it seem like importing from basins never work) various Gregtech machines

Steps to reproduce

(written for 1.20.1)

  1. Connect an ME bridge (connected to an me system with storage space) and a tank with multiple slots to a computer.
  2. Fill the tank with fluid, in a non-first slot. (ex. water in second slot)
  3. Try to import fluids from the tank to the ME system. (ex. bridge.importFluidFromPeripheral({name="minecraft:water", count=1000}, "top")) note: the name in the filter is necessary in 1.20.1, due to another bug : #793
  4. The function returns zero and no fluid is moved.

Multiplayer?

No

Version

1.20.1-0.7.45r (Latest 1.20.1)

Minecraft, Forge and maybe other related mods versions

forge 47.4.6 minecraft 1.20.1

Screenshots or Videos

No response

Crashlog/log

No response

programmer3481 avatar Nov 18 '25 15:11 programmer3481