Skip to content

[1.20.1] [Mods] "context" is null to crash because Modernfix #3682

Description

@XChen446

Minecraft Version : 1.20.1

Mohist Version : 8b58922

Operating System : Windows 10

Concerned mod / plugin : [Mods] Lostworlds、LostCities

Logs : log: https://mclo.gs/HwOMZoQ crash:http://mclo.gs/fK12Z18

Steps to Reproduce :

  1. Download https://www.curseforge.com/minecraft/modpacks/deceasedcraft/download/7375112
  2. Use Mohist server start
  3. crash

Description of issue :

java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "mcjty.lostworlds.compat.LostCitiesCompat$LostCitiesContext.getMinSphereY(int, int)" because "context" is null
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?] {re:mixin}
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?] {re:mixin}
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?] {}
	at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?] {}
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) ~[?:?] {}
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) ~[?:?] {}
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) ~[?:?] {re:mixin,re:computing_frames}
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) ~[?:?] {re:mixin,re:computing_frames}
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) ~[?:?] {re:mixin}
Caused by: java.lang.NullPointerException: Cannot invoke "mcjty.lostworlds.compat.LostCitiesCompat$LostCitiesContext.getMinSphereY(int, int)" because "context" is null
	at mcjty.lostworlds.worldgen.LWChunkGenerator.doFillCaveSpheres(LWChunkGenerator.java:100) ~[lostworlds-1.20-0.0.3.jar%23550!/:1.20-0.0.3] {re:classloading}
	at mcjty.lostworlds.worldgen.LWChunkGenerator.m_224284_(LWChunkGenerator.java:82) ~[lostworlds-1.20-0.0.3.jar%23550!/:1.20-0.0.3] {re:classloading}
	at net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator.m_224324_(NoiseBasedChunkGenerator.java:313) ~[server-1.20.1-20230612.114412-srg.jar%23648!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:citadel.mixins.json:NoiseBasedChunkGeneratorMixin,pl:mixin:APP:customnpcs.mixins.json:NoiseChunkGeneratorMixin,pl:mixin:A}
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] {}
	... 6 more

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions