[BUG] Enabling distinct buses without buses crashes game immediately and on load
Doniazade opened this issue ยท 0 comments
Describe the bug
Building an Advanced Processing Array without any input buses and enabling distinct buses crashes the game with an index out of bounds exception and prevents the world from loading. Using MCEdit to delete the controller allows the world to load again.
Relevant part of the crash log:
java.lang.IndexOutOfBoundsException: Index: 0
at java.util.Collections$EmptyList.get(Collections.java:4456)
at java.util.Collections$UnmodifiableList.get(Collections.java:1311)
at gregtech.api.capability.impl.MultiblockRecipeLogic.trySearchNewRecipeDistinct(MultiblockRecipeLogic.java:178)
at gregtech.api.capability.impl.MultiblockRecipeLogic.trySearchNewRecipe(MultiblockRecipeLogic.java:154)
at gregtech.api.capability.impl.AbstractRecipeLogic.update(AbstractRecipeLogic.java:144)
at gregtech.api.capability.impl.MultiblockRecipeLogic.updateWorkable(MultiblockRecipeLogic.java:40)
at gregtech.api.metatileentity.multiblock.RecipeMapMultiblockController.updateFormedValid(RecipeMapMultiblockController.java:136)
at gregtech.api.metatileentity.multiblock.MultiblockControllerBase.update(MultiblockControllerBase.java:83)
at gregtech.api.metatileentity.MetaTileEntityHolder.update(MetaTileEntityHolder.java:160)
at net.minecraft.world.World.updateEntities(World.java:1838)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:613)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:767)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:185)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:748)
Versions
Forge: 14.23.5.2859
GTCEu: 2.3.1-beta
_Modpack: Nomifactory CEu
Setup
Does this issue happen on Singleplayer, a Server, or both: Singleplayer, not tested in multiplayer
Does this issue happen on a newly generated world: Yes
Steps To Reproduce
- Build an advanced processing array. Specifically I used an auto maintenance hatch, two ZPM input hatches, one ZPM output hatch, a ZPM energy hatch and a machine interface filled with 64 IV chemical reactors.
- Once formed, open the interface and click distinct buses, the game immediately crashes.
Expected behavior
Not crashing