Integrated Dynamics

Integrated Dynamics

63M Downloads

Integrated Dynamics Item Rendering crashing in EMI view

rubensworks opened this issue ยท 3 comments

commented

Issue type:

  • ๐Ÿ› Bug

Short description:

[00:54:38] [Render thread/ERROR] [ne.ne.bu.EventBus/EVENTBUS]: Exception caught during firing event: Cannot invoke "net.minecraft.server.MinecraftServer.registryAccess()" because the return value of "net.neoforged.neoforge.server.ServerLifecycleHooks.getCurrentServer()" is null
    Index: 2
    Listeners:
        0: net.neoforged.bus.EventListenerFactory$eventContainerScreenEvent/0x00000287873a1400@40725ef5
        1: net.neoforged.bus.EventListenerFactory$drawMouseOver/0x0000028787a24400@43303d97
        2: dev.emi.emi.platform.neoforge.EmiClientNeoForge$$Lambda/0x000002878934af28@4c6898ba
        3: mezz.jei.core.util.WeakConsumer@65c57aa
java.lang.NullPointerException: Cannot invoke "net.minecraft.server.MinecraftServer.registryAccess()" because the return value of "net.neoforged.neoforge.server.ServerLifecycleHooks.getCurrentServer()" is null
    at TRANSFORMER/[email protected]/org.cyclops.integrateddynamics.api.evaluate.variable.ValueDeseralizationContext.of(ValueDeseralizationContext.java:18)
    at TRANSFORMER/[email protected]/org.cyclops.integrateddynamics.core.client.model.VariableModelBaked$1.resolve(VariableModelBaked.java:96)
    at TRANSFORMER/[email protected]/net.minecraft.client.renderer.entity.ItemRenderer.getModel(ItemRenderer.java:224)
    at TRANSFORMER/[email protected]+1.21+neoforge/dev.emi.emi.api.stack.ItemEmiStack.isUnbatchable(ItemEmiStack.java:135)

Expected behaviour:


Versions:

  • This mod: See version on Forgecraft
  • Minecraft: 1.21
  • Forge:

Log file:

commented

Thanks for reporting!

commented

got some more logs that might help
AllTheMods/ATM-10#137

commented

Looks like another case of this same getCurrentServer problem which looks to be without a failsafe

return new ValueDeseralizationContext(ServerLifecycleHooks.getCurrentServer().registryAccess());

https://mclo.gs/cBcLb16

mclo.gs
407 lines