Describe the bug
immediately upon using breaks when world is used only entities downloaded are present such as mobs and item frames but no actual blocks
Steps to reproduce
use 1.18.2 enable measure render,mark unsaved chunks, show players on map, send info messages and prevent chunk generation
Log output
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51)
at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66)
at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at game.data.chunk.Chunk.getSectionList(Chunk.java:247)
at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187)
at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168)
at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91)
at game.data.region.Region.lambda$toFile$0(Region.java:142)
at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706)
at game.data.region.Region.toFile(Region.java:123)
at game.data.WorldManager.save(WorldManager.java:426)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.WorldManager.lambda$start$2(WorldManager.java:403)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51)
at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66)
at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at game.data.chunk.Chunk.getSectionList(Chunk.java:247)
at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187)
at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168)
at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91)
at game.data.region.Region.lambda$toFile$0(Region.java:142)
at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706)
at game.data.region.Region.toFile(Region.java:123)
at game.data.WorldManager.save(WorldManager.java:426)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.WorldManager.lambda$start$2(WorldManager.java:403)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51)
at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66)
at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at game.data.chunk.Chunk.getSectionList(Chunk.java:247)
at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187)
at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168)
at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91)
at game.data.region.Region.lambda$toFile$0(Region.java:142)
at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706)
at game.data.region.Region.toFile(Region.java:123)
at game.data.WorldManager.save(WorldManager.java:426)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.WorldManager.lambda$start$2(WorldManager.java:403)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51)
at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66)
at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at game.data.chunk.Chunk.getSectionList(Chunk.java:247)
at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187)
at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168)
at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91)
at game.data.region.Region.lambda$toFile$0(Region.java:142)
at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706)
at game.data.region.Region.toFile(Region.java:123)
at game.data.WorldManager.save(WorldManager.java:426)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.WorldManager.lambda$start$2(WorldManager.java:403)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
at game.data.WorldManager.save(WorldManager.java:426)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.WorldManager.lambda$start$2(WorldManager.java:403)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51)
at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66)
at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at game.data.chunk.Chunk.getSectionList(Chunk.java:247)
at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187)
at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168)
at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91)
at game.data.region.Region.lambda$toFile$0(Region.java:142)
at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706)
at game.data.region.Region.toFile(Region.java:123)
at game.data.WorldManager.save(WorldManager.java:426)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.WorldManager.lambda$start$2(WorldManager.java:403)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51)
at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66)
at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at game.data.chunk.Chunk.getSectionList(Chunk.java:247)
at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187)
at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168)
at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91)
at game.data.region.Region.lambda$toFile$0(Region.java:142)
at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706)
at game.data.region.Region.toFile(Region.java:123)
at game.data.WorldManager.save(WorldManager.java:426)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.WorldManager.lambda$start$2(WorldManager.java:403)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51)
at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66)
at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51)
at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66)
at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at game.data.chunk.Chunk.getSectionList(Chunk.java:247)
at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187)
at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168)
at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91)
at game.data.region.Region.lambda$toFile$0(Region.java:142)
at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706)
at game.data.region.Region.toFile(Region.java:123)
at game.data.WorldManager.save(WorldManager.java:426)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.WorldManager.lambda$start$2(WorldManager.java:403)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51)
at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66)
at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51)
at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66)
at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at game.data.chunk.Chunk.getSectionList(Chunk.java:247)
at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187)
at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168)
at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91)
at game.data.region.Region.lambda$toFile$0(Region.java:142)
at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706)
at game.data.region.Region.toFile(Region.java:123)
at game.data.WorldManager.save(WorldManager.java:426)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.WorldManager.lambda$start$2(WorldManager.java:403)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51)
at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66)
at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at game.data.chunk.Chunk.getSectionList(Chunk.java:247)
at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187)
at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168)
at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91)
at game.data.region.Region.lambda$toFile$0(Region.java:142)
at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706)
at game.data.region.Region.toFile(Region.java:123)
at game.data.WorldManager.save(WorldManager.java:426)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.WorldManager.lambda$start$2(WorldManager.java:403)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
Describe the bug immediately upon using breaks when world is used only entities downloaded are present such as mobs and item frames but no actual blocks
Steps to reproduce use 1.18.2 enable measure render,mark unsaved chunks, show players on map, send info messages and prevent chunk generation
Log output java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51) at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66) at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at game.data.chunk.Chunk.getSectionList(Chunk.java:247) at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187) at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168) at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91) at game.data.region.Region.lambda$toFile$0(Region.java:142) at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706) at game.data.region.Region.toFile(Region.java:123) at game.data.WorldManager.save(WorldManager.java:426) at util.ExceptionHandling.attempt(ExceptionHandling.java:12) at util.ExceptionHandling.attempt(ExceptionHandling.java:22) at game.data.WorldManager.lambda$start$2(WorldManager.java:403) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842) java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51) at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66) at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at game.data.chunk.Chunk.getSectionList(Chunk.java:247) at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187) at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168) at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91) at game.data.region.Region.lambda$toFile$0(Region.java:142) at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706) at game.data.region.Region.toFile(Region.java:123) at game.data.WorldManager.save(WorldManager.java:426) at util.ExceptionHandling.attempt(ExceptionHandling.java:12) at util.ExceptionHandling.attempt(ExceptionHandling.java:22) at game.data.WorldManager.lambda$start$2(WorldManager.java:403) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842) java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51) at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66) at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at game.data.chunk.Chunk.getSectionList(Chunk.java:247) at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187) at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168) at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91) at game.data.region.Region.lambda$toFile$0(Region.java:142) at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706) at game.data.region.Region.toFile(Region.java:123) at game.data.WorldManager.save(WorldManager.java:426) at util.ExceptionHandling.attempt(ExceptionHandling.java:12) at util.ExceptionHandling.attempt(ExceptionHandling.java:22) at game.data.WorldManager.lambda$start$2(WorldManager.java:403) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842) java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51) at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66) at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at game.data.chunk.Chunk.getSectionList(Chunk.java:247) at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187) at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168) at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91) at game.data.region.Region.lambda$toFile$0(Region.java:142) at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706) at game.data.region.Region.toFile(Region.java:123) at game.data.WorldManager.save(WorldManager.java:426) at util.ExceptionHandling.attempt(ExceptionHandling.java:12) at util.ExceptionHandling.attempt(ExceptionHandling.java:22) at game.data.WorldManager.lambda$start$2(WorldManager.java:403) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51) at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66) at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at game.data.chunk.Chunk.getSectionList(Chunk.java:247) at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187) at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168) at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91) at game.data.region.Region.lambda$toFile$0(Region.java:142) at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706) at game.data.region.Region.toFile(Region.java:123) at game.data.WorldManager.save(WorldManager.java:426) at util.ExceptionHandling.attempt(ExceptionHandling.java:12) at util.ExceptionHandling.attempt(ExceptionHandling.java:22) at game.data.WorldManager.lambda$start$2(WorldManager.java:403) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51) at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66) at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51) at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66) at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at game.data.chunk.Chunk.getSectionList(Chunk.java:247) at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187) at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168) at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91) at game.data.region.Region.lambda$toFile$0(Region.java:142) at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706) at game.data.region.Region.toFile(Region.java:123) at game.data.WorldManager.save(WorldManager.java:426) at util.ExceptionHandling.attempt(ExceptionHandling.java:12) at util.ExceptionHandling.attempt(ExceptionHandling.java:22) at game.data.WorldManager.lambda$start$2(WorldManager.java:403) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51) at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66) at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51) at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66) at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at game.data.chunk.Chunk.getSectionList(Chunk.java:247) at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187) at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168) at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91) at game.data.region.Region.lambda$toFile$0(Region.java:142) at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706) at game.data.region.Region.toFile(Region.java:123) at game.data.WorldManager.save(WorldManager.java:426) at util.ExceptionHandling.attempt(ExceptionHandling.java:12) at util.ExceptionHandling.attempt(ExceptionHandling.java:22) at game.data.WorldManager.lambda$start$2(WorldManager.java:403) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842)
java.lang.NullPointerException: Cannot invoke "game.data.chunk.palette.State.toNbt()" because the return value of "game.data.chunk.palette.StateProvider.getState(int)" is null at game.data.chunk.palette.SingleValuePalette.toNbt(SingleValuePalette.java:51) at game.data.chunk.version.ChunkSection_1_18.getPalettedCompound(ChunkSection_1_18.java:66) at game.data.chunk.version.ChunkSection_1_18.toNbt(ChunkSection_1_18.java:44) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at game.data.chunk.Chunk.getSectionList(Chunk.java:247) at game.data.chunk.version.Chunk_1_18.addLevelNbtTags(Chunk_1_18.java:187) at game.data.chunk.version.Chunk_1_18.toNbt(Chunk_1_18.java:168) at game.data.chunk.ChunkBinary.fromChunk(ChunkBinary.java:91) at game.data.region.Region.lambda$toFile$0(Region.java:142) at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4706) at game.data.region.Region.toFile(Region.java:123) at game.data.WorldManager.save(WorldManager.java:426) at util.ExceptionHandling.attempt(ExceptionHandling.java:12) at util.ExceptionHandling.attempt(ExceptionHandling.java:22) at game.data.WorldManager.lambda$start$2(WorldManager.java:403) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842)
Version