refactor: doing a little cleaning of the test code
This commit is contained in:
parent
230acf439e
commit
95a5e99038
2 changed files with 1 additions and 13 deletions
|
@ -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
|
||||
MinecraftKey key = MinecraftKey.fromHandle(commonSpawnData.getClass().getRecordComponents()[1]);
|
||||
System.out.println(key.getPrefix() + " / " + key.getKey() + " (" + key.getFullKey() + ")");
|
||||
final MinecraftKey key = MinecraftKey.fromHandle(commonSpawnData.getClass().getRecordComponents()[1]);
|
||||
for (World world : Bukkit.getWorlds()) {
|
||||
if (keysEquals(key, world.getKey())) {
|
||||
return Optional.of(world);
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
package xyz.ineanto.nicko.wrapper;
|
||||
|
||||
public class WrapperCommonPlayerSpawnInfo {
|
||||
private final Object handle;
|
||||
|
||||
public WrapperCommonPlayerSpawnInfo(Object handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue