Doctor Who:  Weeping Angels

Doctor Who: Weeping Angels

3M Downloads

Crashing In Void World

newtxtdoc opened this issue ยท 0 comments

commented

When a superflat world (void specifically) is loaded, it seems to crash the game occasionally. It doesn't always crash the game, but when it does, it spits out this error.

---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.

Time: 2025-03-03 03:43:34
Description: Starting integrated server

java.lang.NullPointerException: Cannot invoke "net.minecraft.server.MinecraftServer.method_30611()" because the return value of "dev.jeryn.angels.util.Platform.getServer()" is null
at knot//dev.jeryn.angels.WAEntitySpawns.canSpawnInThisBiome(WAEntitySpawns.java:38)
at knot//dev.jeryn.angels.FabricSpawnHelper.lambda$init$0(FabricSpawnHelper.java:15)
at knot//net.fabricmc.fabric.impl.biome.modification.BiomeModificationImpl.finalizeWorldGen(BiomeModificationImpl.java:138)
at knot//net.minecraft.server.MinecraftServer.handler$zzf000$fabric-biome-api-v1$finalizeWorldGen(MinecraftServer.java:1837)
at knot//net.minecraft.server.MinecraftServer.(MinecraftServer.java:304)
at knot//net.minecraft.class_1132.(class_1132.java:50)
at knot//net.minecraft.class_310.method_29603(class_310.java:2094)
at knot//net.minecraft.server.MinecraftServer.method_29740(MinecraftServer.java:272)
at knot//net.minecraft.class_310.method_29610(class_310.java:2094)
at knot//net.minecraft.class_7196.method_43326(class_7196.java:235)
at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(Unknown Source)
at knot//net.minecraft.class_1255.execute(class_1255.java:102)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.thenAcceptAsync(Unknown Source)
at knot//net.minecraft.class_7196.method_41899(class_7196.java:233)
at knot//net.minecraft.class_7196.method_41894(class_7196.java:64)
at knot//net.minecraft.class_528$class_4272.method_20174(class_528.java:590)
at knot//net.minecraft.class_528$class_4272.method_20164(class_528.java:480)
at knot//net.minecraft.class_528$class_4272.method_25402(class_528.java:407)
at knot//net.minecraft.class_350.method_25402(class_350.java:327)
at knot//net.minecraft.class_4069.method_25402(class_4069.java:38)
at knot//net.minecraft.class_312.method_1611(class_312.java:98)
at knot//net.minecraft.class_437.method_25412(class_437.java:409)
at knot//net.minecraft.class_312.method_1601(class_312.java:98)
at knot//net.minecraft.class_312.method_22686(class_312.java:169)
at knot//net.minecraft.class_1255.execute(class_1255.java:102)
at knot//net.minecraft.class_312.method_22684(class_312.java:169)
at knot//org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
at knot//org.lwjgl.system.JNI.invokeV(Native Method)
at knot//org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)
at knot//com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:237)
at knot//net.minecraft.class_310.method_1523(class_310.java:1244)
at knot//net.minecraft.class_310.method_1514(class_310.java:802)
at knot//net.minecraft.client.main.Main.main(Main.java:250)
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)

I think it is due to it not being able to find a proper place for it so it fills the position data with null instead of just waiting to find a position for it later. Thanks for making such a cool mod and hope it is an easy fix!