Posted August 16, 20214 yr I was developing on 1.16.5 until yesterday and moved it to 1.17, but I'm having two issues. 1. Crash when use custom liquid bucket. Displayed ""this.fluid" is null", but I don't think it should be null because the liquid is properly registered ... error log: Spoiler java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.material.FlowingFluid.is(net.minecraft.tags.Tag)" because "this.fluid" is null at net.minecraft.world.level.block.LiquidBlock.shouldSpreadLiquid(LiquidBlock.java:131) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.world.level.block.LiquidBlock.onPlace(LiquidBlock.java:109) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.onPlace(BlockBehaviour.java:625) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.world.level.chunk.LevelChunk.setBlockState(LevelChunk.java:292) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.world.level.Level.setBlock(Level.java:200) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.world.level.Level.setBlock(Level.java:177) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.world.item.BucketItem.emptyContents(BucketItem.java:146) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.world.item.BucketItem.use(BucketItem.java:90) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.world.item.ItemStack.use(ItemStack.java:243) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.level.ServerPlayerGameMode.useItem(ServerPlayerGameMode.java:284) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItem(ServerGamePacketListenerImpl.java:995) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.network.protocol.game.ServerboundUseItemPacket.handle(ServerboundUseItemPacket.java:23) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.network.protocol.game.ServerboundUseItemPacket.handle(ServerboundUseItemPacket.java:7) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:21) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.TickTask.run(TickTask.java:17) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:139) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:22) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:775) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:162) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:112) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:758) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:752) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:122) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:738) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:687) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:258) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at java.lang.Thread.run(Thread.java:831) [?:?] custom fluid bucket is here : https://github.com/Zemelua/UMU-Arcanum/blob/main/src/main/java/io/github/zemelua/umu_arcanum/item/UMUArcanumItems.java 2. It seems that the biome is not registered. The other day, I encountered a similar error in 1.16.5, and at that time I just forgot to register the deferred register, but the error is displayed even though I registered properly this time. Also, this time the error biome id is -1 instead of 174 (the first index of the mod biome). error log: Spoiler java.lang.NullPointerException: Cannot invoke "it.unimi.dsi.fastutil.objects.ObjectSet.remove(Object)" because "objectset" is null at net.minecraft.server.level.DistanceManager.removePlayer(DistanceManager.java:230) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.level.ChunkMap.move(ChunkMap.java:863) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.level.ServerChunkCache.move(ServerChunkCache.java:433) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleMovePlayer(ServerGamePacketListenerImpl.java:849) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket.handle(ServerboundMovePlayerPacket.java:28) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$PosRot.handle(ServerboundMovePlayerPacket.java:84) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:21) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.TickTask.run(TickTask.java:17) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:139) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:22) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:775) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:162) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:112) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:758) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:752) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:122) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:738) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:687) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:258) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at java.lang.Thread.run(Thread.java:831) [?:?] [01:06:57] [Server thread/INFO]: Saving and pausing game... [01:06:57] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld [01:06:57] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether [01:06:57] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end [01:06:57] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/umu_arcanum:the_silence [01:06:57] [Server thread/ERROR]: Encountered an unexpected exception java.util.concurrent.CompletionException: net.minecraft.ReportedException: Exception generating new chunk at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?] at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1155) ~[?:?] at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] at net.minecraft.server.level.ChunkTaskPriorityQueueSorter.lambda$message$1(ChunkTaskPriorityQueueSorter.java:47) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.util.thread.ProcessorMailbox.pollTask(ProcessorMailbox.java:86) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.util.thread.ProcessorMailbox.pollUntil(ProcessorMailbox.java:138) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.util.thread.ProcessorMailbox.run(ProcessorMailbox.java:94) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1434) ~[?:?] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?] at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?] at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?] Caused by: net.minecraft.ReportedException: Exception generating new chunk at net.minecraft.server.level.ChunkMap.lambda$scheduleChunkGeneration$18(ChunkMap.java:529) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar%2341!:?] at net.minecraft.server.level.ChunkMap.lambda$scheduleChunkGeneration$20(ChunkMap.java:515) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1146) ~[?:?] ... 11 more Caused by: java.lang.IllegalStateException: Unknown biome id emitted by layers: -1 at net.minecraft.world.level.newbiome.layer.Layer.get(Layer.java:25) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at io.github.zemelua.umu_arcanum.world.biome.SilenceBiomeSource.getNoiseBiome(SilenceBiomeSource.java:58) ~[%2378!:?] at net.minecraft.world.level.biome.BiomeManager$NoiseBiomeSource.getPrimaryBiome(BiomeManager.java:59) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.world.level.chunk.ChunkGenerator.createStructures(ChunkGenerator.java:241) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.world.level.chunk.ChunkStatus.lambda$static$2(ChunkStatus.java:41) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.world.level.chunk.ChunkStatus.generate(ChunkStatus.java:208) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at net.minecraft.server.level.ChunkMap.lambda$scheduleChunkGeneration$18(ChunkMap.java:517) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar%2341!:?] at net.minecraft.server.level.ChunkMap.lambda$scheduleChunkGeneration$20(ChunkMap.java:515) ~[forge-1.17.1-37.0.34_mapped_official_1.17.1-recomp.jar%2374!:?] at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1146) ~[?:?] ... 11 more custom biome register is here : https://github.com/Zemelua/UMU-Arcanum/blob/main/src/main/java/io/github/zemelua/umu_arcanum/world/biome/UMUArcanumBiomes.java and data is here : https://github.com/Zemelua/UMU-Arcanum/blob/main/src/main/resources/data/umu_arcanum/worldgen/biome/dim_forest.json It took me a long time, but I couldn't figure out why this was happening. Help me. PS: Is this a possible 1.17 mapping issue? I'm using the official 1.17 mapping. Edited August 16, 20214 yr by Zemelua
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.