Applied Energistics 2

Applied Energistics 2

156M Downloads

Crash while dragging fluid from EMI to Interface

MuteTiefling opened this issue ยท 5 comments

commented

Describe the bug

Game crashes while dragging fluid from EMI to Interface

How to reproduce the bug

Drag a fluid from EMI to Interface

Expected behavior

No crash

Additional details

No response

Which minecraft version are you using?

1.21

On which mod loaders does it happen?

NeoForge

Crash log

https://gist.github.com/MuteTiefling/8d75ce7c021a9355a65bd5c6d93a3696

commented

EmiFluidStackConverter.java has an explicit throw and a TODO comment in there

    @Override
    public @Nullable GenericStack toGenericStack(EmiStack stack) {
        var fluid = stack.getKeyOfType(Fluid.class);
        if (fluid != null && fluid != Fluids.EMPTY) {
            // TODO 1.20.5
            throw new UnsupportedOperationException();
//            var fluidKey = AEFluidKey.of(fluid, stack.getNbt());
//            return new GenericStack(fluidKey, stack.getAmount());
        }
        return null;
    }

This would probably affect every interaction with EMI involving fluids.

commented

Seems related, so I'm just adding it here: https://gist.github.com/MuteTiefling/8d619430c130527d8bed014714f80ab4

This crash happened while attempting to set a pattern that includes water. Happened as I moused over the recipe tab in EMI

commented

Alright. They seem to believe it's something on ae2's end (see linked issue)

commented

Oopsi :D

commented

I tell y'all, no one fucking used the 1.20.5/1.20.6 versions. I have to go back and check all those porting comments.

Working on this one immediately.