refactor: doing a little cleaning of the test code

This commit is contained in:
ineanto 2024-09-29 20:32:11 +02:00
parent 230acf439e
commit 95a5e99038
Signed by: ineanto
GPG key ID: E511F9CAA2F9CE84
2 changed files with 1 additions and 13 deletions

View file

@ -71,8 +71,7 @@ public class RespawnPacketListener implements PacketListener {
); );
// get the key of the level the player is joining. Second field in the object. First of type ResourceKey // get the key of the level the player is joining. Second field in the object. First of type ResourceKey
MinecraftKey key = MinecraftKey.fromHandle(commonSpawnData.getClass().getRecordComponents()[1]); final MinecraftKey key = MinecraftKey.fromHandle(commonSpawnData.getClass().getRecordComponents()[1]);
System.out.println(key.getPrefix() + " / " + key.getKey() + " (" + key.getFullKey() + ")");
for (World world : Bukkit.getWorlds()) { for (World world : Bukkit.getWorlds()) {
if (keysEquals(key, world.getKey())) { if (keysEquals(key, world.getKey())) {
return Optional.of(world); return Optional.of(world);

View file

@ -1,11 +0,0 @@
package xyz.ineanto.nicko.wrapper;
public class WrapperCommonPlayerSpawnInfo {
private final Object handle;
public WrapperCommonPlayerSpawnInfo(Object handle) {
this.handle = handle;
}
}