Crash while dragging fluid from EMI to Interface
MuteTiefling opened this issue ยท 5 comments
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
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.
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