You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.
Basically, I'm trying to create an instance for a player in the PlayerLoginEvent, but it seems like when the player breaks a block, it throws an error in console and doesn't drop an item. This same code was working with regular Minestom.
java.lang.NullPointerException: Unloaded chunk at -144,-64,112
at net.minestom.server.instance.Instance.getBlock(Instance.java:596)
at net.minestom.server.instance.block.Block$Getter.getBlock(Block.java:218)
at net.minestom.server.instance.block.Block$Getter.getBlock(Block.java:226)
at io.github.fisher2911.myserver.world.BlockHandlersKt$createDefaultHandler$3.onDestroy(BlockHandlers.kt:32)
at net.minestom.server.instance.DynamicChunk.setBlock(DynamicChunk.java:111)
at net.minestom.server.instance.Chunk.setBlock(Chunk.java:91)
at net.minestom.server.instance.AnvilLoader.loadBlockEntities(AnvilLoader.java:300)
at net.minestom.server.instance.AnvilLoader.loadMCA(AnvilLoader.java:129)
at net.minestom.server.instance.AnvilLoader.loadChunk(AnvilLoader.java:87)
at net.minestom.server.instance.InstanceContainer.lambda$retrieveChunk$6(InstanceContainer.java:294)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
The text was updated successfully, but these errors were encountered:
Basically, I'm trying to create an instance for a player in the PlayerLoginEvent, but it seems like when the player breaks a block, it throws an error in console and doesn't drop an item. This same code was working with regular Minestom.
Player login listener
CustomChunkGenerator
Block I'm trying to break that doesn't drop anything
createDefaultHandler method - this is where the error occurs
Version:
implementation("dev.hollowcube:minestom-ce:010fe985bb")
Error:
The text was updated successfully, but these errors were encountered: