reobf / Programmable-Hatches-Mod

An addon for GTNH modpack(2.5.1+)
MIT License
83 stars 3 forks source link

Probably a bug with dual input hatch #161

Closed evgengoldwar closed 1 month ago

evgengoldwar commented 1 month ago

When crafting the ion thruster. My Ae stops accepting any items and won't let me take anything from it either

logs server https://drive.google.com/file/d/1YNJPKyldlRtPCe4Vkre7faehqC21zlC8/view?usp=sharing

reobf commented 1 month ago

might be fixed in https://github.com/reobf/Programmable-Hatches-Mod/releases/tag/v0.1.2p4-beta

reobf commented 1 month ago

The error stacktrace spamming in log is caused by an unloaded dualhatch MTE still being used by a Multiblock. I believe this might be a bug of GT5u (PR #3893) This problem exists for a long time, I just add the check in v0.1.2. Actually I have no idea why it affects AE, maybe the log spamming lags the server...

v0.1.2p4-beta workaround this, but not sure to solve the AE problem

reobf commented 1 month ago

Oh sorry, it's the IngredientDistributor's problem...

[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]: java.lang.NullPointerException: Cannot invoke "appeng.api.storage.data.IAEFluidStack.getFluid()" because "a" is null
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//reobf.proghatches.gt.metatileentity.multi.IngredientDistributor.sameType(IngredientDistributor.java:1134)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//reobf.proghatches.gt.metatileentity.multi.IngredientDistributor.checkMEHatch(IngredientDistributor.java:1071)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//reobf.proghatches.gt.metatileentity.multi.IngredientDistributor.moveToOutpusME(IngredientDistributor.java:767)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//reobf.proghatches.gt.metatileentity.multi.IngredientDistributor.distribute(IngredientDistributor.java:723)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//reobf.proghatches.gt.metatileentity.multi.IngredientDistributor.runMachine(IngredientDistributor.java:581)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//gregtech.api.metatileentity.implementations.MTEMultiBlockBase.onPostTick(MTEMultiBlockBase.java:476)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//reobf.proghatches.gt.metatileentity.multi.IngredientDistributor.onPostTick(IngredientDistributor.java:1404)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//gregtech.api.metatileentity.BaseMetaTileEntity.func_145845_h(BaseMetaTileEntity.java:566)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//net.minecraft.world.World.redirect$zzo000$laggoggles$measureUpdateEntity(World.java:60636)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//net.minecraft.world.World.func_72939_s(World.java:1939)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:489)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:636)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
[02:13:05] [Server thread/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:785]:    at Launch//net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
reobf commented 1 month ago

https://github.com/reobf/Programmable-Hatches-Mod/releases/tag/v0.1.2p5-beta

evgengoldwar commented 1 month ago

https://github.com/reobf/Programmable-Hatches-Mod/releases/tag/v0.1.2p5-beta

Yes the bug is fixed thank you very much for the quick fix