Moonrise

Moonrise

13.8k Downloads

[Incompatiblity] Moonrise & Litematica: NullPointerException and Crash when loading the game world

Scaenicus opened this issue ยท 0 comments

commented

Description

  • When trying to load a world (SP or MP) with both Moonrise and Litematica active, the game crashes.

Steps to Reproduce

  1. Put both Moonrise and Litematica into your mods-folder
  2. Start Minecraft
  3. In the main menu, select a world to load (singleplayer or multiplayer does not matter)
  4. Experience a NullPointerException
java.lang.NullPointerException: Cannot read field "field_1687" because "this.mc" is null
	at fi.dy.masa.litematica.world.WorldSchematic.method_31607(WorldSchematic.java:316)
	at fi.dy.masa.litematica.world.WorldSchematic.method_32891(WorldSchematic.java:336)
	at ca.spottedleaf.moonrise.common.util.WorldUtil.getMinSection(WorldUtil.java:15)
	at ca.spottedleaf.moonrise.patches.chunk_system.level.entity.EntityLookup.<init>(EntityLookup.java:59)
	at ca.spottedleaf.moonrise.patches.chunk_system.level.entity.dfl.DefaultEntityLookup.<init>(DefaultEntityLookup.java:14)
	at net.minecraft.class_1937.handler$bme002$moonrise$initHook(class_1937.java:6135)
	at net.minecraft.class_1937.<init>(class_1937.java:167)
	at fi.dy.masa.litematica.world.WorldSchematic.<init>(WorldSchematic.java:70)
	at fi.dy.masa.litematica.world.SchematicWorldHandler.createSchematicWorld(SchematicWorldHandler.java:102)
	at fi.dy.masa.litematica.world.SchematicWorldHandler.recreateSchematicWorld(SchematicWorldHandler.java:118)
	at fi.dy.masa.litematica.event.WorldLoadListener.onWorldLoadPost(WorldLoadListener.java:42)
	at fi.dy.masa.malilib.event.WorldLoadHandler.onWorldLoadPost(WorldLoadHandler.java:104)
	at net.minecraft.class_634.handler$bjo000$malilib$onPostGameJoin(class_634.java:6031)
	at net.minecraft.class_634.method_11120(class_634.java:477)
	at net.minecraft.class_2678.method_11567(class_2678.java:69)
	at net.minecraft.class_2678.method_11054(class_2678.java:17)
	at net.minecraft.class_2600.method_11072(class_2600.java:27)
	at net.minecraft.class_1255.method_18859(class_1255.java:162)
	at net.minecraft.class_4093.method_18859(class_4093.java:23)
	at net.minecraft.class_1255.method_16075(class_1255.java:136)
	at net.minecraft.class_1255.method_5383(class_1255.java:121)
	at net.minecraft.class_310.method_1523(class_310.java:1240)
	at net.minecraft.class_310.method_1514(class_310.java:882)
	at net.minecraft.client.main.Main.main(Main.java:256)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

Environment

  • OS: Windows 10
  • Versions:
    • Moonrise-Fabric-0.1.0-beta.4+e244c60.jar

AND (

  • litematica-fabric-1.21.1-0.19.3-sakura.3.jar

OR

  • litematica-fabric-1.21.1-0.19.50.jar
  • Minecraft: fabric-loader-0.16.5-1.21.1

)

Full mod directory
image

Additional Information

  • The game works with either Moonrise or Litematica, just not with both.
  • I can verify that Litematica worked together with Starlight in the past, if that's of any help.
  • Logfile is attached to this post.

disconnect-2024-10-07_15.59.47-client.txt