AtomicStryker / atomicstrykers-minecraft-mods

Repository for my open source Minecraft Mods
https://atomicstryker.github.io/
180 stars 96 forks source link

Cannot read field "f_91074_" because "atomicstryker.infernalmobs.client.InfernalMobsClient.mc" is null #510

Closed NancalaStarry closed 2 months ago

NancalaStarry commented 2 months ago

Crashreport Forge 1.20.1 - mclo.gs debug Forge 1.20.1 - mclo.gs latest.log Forge 1.20.1 - mclo.gs

I found "Cannot read field "f91074" because "atomicstryker.infernalmobs.client.InfernalMobsClient.mc" is null" in latest.log and I think that should link to this mod.

AtomicStryker commented 2 months ago

[net.minecraft.util.thread.BlockableEventLoop/FATAL]: Error executing task on Client

java.lang.NullPointerException: Cannot read field "f91074" because "atomicstryker.infernalmobs.client.InfernalMobsClient.mc" is null at atomicstryker.infernalmobs.client.InfernalMobsClient.onEntityJoinedWorld(InfernalMobsClient.java:36)

Aye, this is the the relevant message. So somehow you have EntityJoinLevelEvent before ClientPlayerNetworkEvent.LoggingIn triggered Using some SpongeForge amalgamation...

Well, let me just add a late init if this happens for you

https://github.com/AtomicStryker/atomicstrykers-minecraft-mods/commit/e810b3bd173292120528c9fc2f5fe2ed78013e01

https://github.com/AtomicStryker/atomicstrykers-minecraft-mods/commit/5b2355495b496da13ade888a1305af054332f9f9

new versions for 1.20.1 and 1.21 are pushed, thanks for the report.

NancalaStarry commented 2 months ago

Ok. Thank you very much! :>