Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when player join #6

Closed
EnterTG opened this issue Jun 1, 2023 · 1 comment · Fixed by #8
Closed

Error when player join #6

EnterTG opened this issue Jun 1, 2023 · 1 comment · Fixed by #8

Comments

@EnterTG
Copy link

EnterTG commented Jun 1, 2023

Minestom: 9b15acf4fa
Polar: 1.1.1

When starting the server everything looks fine, only when the player tries to connect I get an error :(

lobbyWorldInstance = new InstanceContainer(UUID.randomUUID(), DimensionType.OVERWORLD);
PolarLoader polarLobbyLoader = new PolarLoader(Path.of(LOBBY_WORLD_PATH));

lobbyWorldInstance.setChunkLoader(polarMainLoader);
lobbyWorldInstance.getChunks()
	.forEach(chunk -> lobbyWorldInstance.loadChunk(chunk.getChunkX(), chunk.getChunkZ()));
Exception in thread "Ms-TickScheduler" java.lang.NoSuchMethodError: 'net.minestom.server.utils.chunk.ChunkSupplier net.minestom.server.instance.Instance.getChunkSupplier()'
        at Ext_myherolib//net.hollowcube.polar.compat.ChunkSupplierShim.lambda$select$0(ChunkSupplierShim.java:22)
        at Ext_myherolib//net.hollowcube.polar.PolarLoader.loadChunk(PolarLoader.java:82)
        at net.minestom.server.instance.InstanceContainer.lambda$retrieveChunk$8(InstanceContainer.java:266)
        at net.minestom.server.instance.InstanceContainer.retrieveChunk(InstanceContainer.java:292)
        at net.minestom.server.instance.InstanceContainer.lambda$loadOptionalChunk$4(InstanceContainer.java:218)
        at net.minestom.server.instance.InstanceContainer.loadOrRetrieve(InstanceContainer.java:630)
        at net.minestom.server.instance.InstanceContainer.loadOptionalChunk(InstanceContainer.java:218)
        at net.minestom.server.entity.Player.lambda$setInstance$9(Player.java:587)
        at net.minestom.server.utils.chunk.ChunkUtils.forChunksInRange(ChunkUtils.java:175)
        at net.minestom.server.utils.chunk.ChunkUtils.forChunksInRange(ChunkUtils.java:181)
        at net.minestom.server.entity.Player.setInstance(Player.java:586)
        at net.minestom.server.entity.Player.setInstance(Player.java:639)
        at net.minestom.server.entity.Player.UNSAFE_init(Player.java:331)
        at net.minestom.server.network.ConnectionManager.lambda$updateWaitingPlayers$5(ConnectionManager.java:266)
        at org.jctools.queues.MessagePassingQueueUtil.drain(MessagePassingQueueUtil.java:39)
        at org.jctools.queues.BaseMpscLinkedArrayQueue.drain(BaseMpscLinkedArrayQueue.java:612)
        at org.jctools.queues.MpscUnboundedArrayQueue.drain(MpscUnboundedArrayQueue.java:23)
        at org.jctools.queues.MpscUnboundedArrayQueue.drain(MpscUnboundedArrayQueue.java:63)
        at net.minestom.server.network.ConnectionManager.updateWaitingPlayers(ConnectionManager.java:256)
        at net.minestom.server.ServerProcessImpl$TickerImpl.tick(ServerProcessImpl.java:283)
        at net.minestom.server.thread.TickSchedulerThread.run(TickSchedulerThread.java:24)

@EnterTG EnterTG changed the title Error when player joint Error when player join Jun 1, 2023
@mworzala
Copy link
Contributor

mworzala commented Jun 6, 2023

Fixed in https://github.com/hollow-cube/polar/releases/tag/1.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants