From 1190b72df82592bf2c1dd5651adc6be581e2a167 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 11 Sep 2024 12:46:53 +0200 Subject: [PATCH] chore: remove my tests --- .../io/github/sculkpowered/server/protocol/SculkConnection.java | 2 +- .../server/protocol/netty/codec/MinecraftEncoder.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main/java/io/github/sculkpowered/server/protocol/SculkConnection.java b/server/src/main/java/io/github/sculkpowered/server/protocol/SculkConnection.java index 03e0ea01..635d12f7 100644 --- a/server/src/main/java/io/github/sculkpowered/server/protocol/SculkConnection.java +++ b/server/src/main/java/io/github/sculkpowered/server/protocol/SculkConnection.java @@ -280,10 +280,10 @@ public int id() { } public void play() { - final var world = (SculkWorld) this.server.createWorld(World.builder().name("aaaa").loader(WorldLoader.anvil(Path.of("world")))); this.setState(State.PLAY); this.server.eventHandler().call(new PlayerInitialEvent(this.player)) .thenAcceptAsync(event -> { + final var world = (SculkWorld) event.world(); var position = event.position(); if (world == null || !world.isAlive()) { this.player.disconnect(Component.text("No world found.", NamedTextColor.RED)); diff --git a/server/src/main/java/io/github/sculkpowered/server/protocol/netty/codec/MinecraftEncoder.java b/server/src/main/java/io/github/sculkpowered/server/protocol/netty/codec/MinecraftEncoder.java index 66a69074..cec9d27e 100644 --- a/server/src/main/java/io/github/sculkpowered/server/protocol/netty/codec/MinecraftEncoder.java +++ b/server/src/main/java/io/github/sculkpowered/server/protocol/netty/codec/MinecraftEncoder.java @@ -14,7 +14,6 @@ public final class MinecraftEncoder extends MessageToByteEncoder