NullPointerException crash if trying to craft an item with 0 stock with ME bridge
LauJosefsen opened this issue ยท 0 comments
Descripe
Own compiled build from current master as of writing, as AE Bridge is broken in latest release.
Game/server crashes if trying to craft an item is not in stock in the ME system.
I think the bug is here:
https://github.com/Seniorendi/AdvancedPeripherals/blob/8debb40a941977609bd80f9e9baf0b1f12a2f7d8/src/main/java/de/srendi/advancedperipherals/common/addons/appliedenergistics/CraftJob.java#L83
aeItem can be null, and .getRight is called just after. :)
Steps to reproduce
Have a recipe in ME system, but no items in stock/in system.
me = peripheral.wrap("left")
me.craftItem({name="minecraft:oak_planks", count=10})
Multiplayer?
No
Version
Own compiled build.
Minecraft, Forge and maybe other related mods versions
Forge 40.1.0, Minecraft 1.18.2, AE2 11.0.0-alpha.6
Screenshots or Videos
No response