L2 Hostility

L2 Hostility

175k Downloads

Causes GregTech multiblock structure preview to fail to render properly when installed alongside GregTech

Schabe-Antimonfeld opened this issue · 2 comments

commented

Description

When installed together with GregTech and JEI, the GregTech multiblock structure preview fails to render properly, as shown in the screenshot below:
Image

Steps to Reproduce:

  1. Install L2Hostility and its dependencies.
  2. Install GregTech Modern.
  3. Install JEI.

Log excerpt:

java.lang.NullPointerException: Cannot invoke "com.lowdragmc.lowdraglib.utils.DummyWorld.m_141937_()" because "this.world" is null
at ldlib.com.lowdragmc.lowdraglib.utils.virtual.VirtualChunk.m_141937_(VirtualChunk.java:208)
at l2hostility.dev.xkmc.l2hostility.content.capability.chunk.ChunkDifficulty.init(ChunkDifficulty.java:91)
...

The full log is attached.
minecraft-exported-logs-2025-08-13T15-22-36.log

Environment

  • Minecraft 1.20.1
  • Forge 47.4.6
  • L2 Complements 2.5.7
  • L2 Library 2.5.3
  • Patchouli 84.1
  • L2 Hostility 2.5.9
  • GregTech Modern 7.1.4
  • JEI 15.20.0.112

Expected Behavior:

Multiblock structures should render correctly, as shown in the following screenshot:

Image

Additional Information:

The crash appears related to the interaction between LDLib’s(which is built in GregTech) virtual world rendering and L2Hostility’s chunk capability initialization. It specifically affects GregTech multiblock structures preview.

commented

Moreover, in other cases when gt load its 3d
preview (like in the machine gui), the game will crash.

commented

Looks like it triggered L2H's chunk difficulty initialization and L2H asking for world height causing the crash. Can be fixed by GregTech returning a dummy value (let's say, 16) for world height