diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index c3b9c7cdab..2444070d65 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -90,12 +90,12 @@ public final class CraftServer implements Server { if (partialName.equalsIgnoreCase(iterPlayerName)) { // Exact match - matchedPlayers.clear(); - matchedPlayers.add(iterPlayer); - break; - } + matchedPlayers.clear(); + matchedPlayers.add(iterPlayer); + break; + } if (iterPlayerName.toLowerCase().indexOf(partialName.toLowerCase()) != -1) { - // Partial match + // Partial match matchedPlayers.add(iterPlayer); } } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 35f2a3a833..8d5aa10016 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -56,7 +56,7 @@ public class CraftWorld implements World { } public int getHighestBlockYAt(int x, int z) { - return world.d(x, z); + return world.d(x, z); } public Chunk getChunkAt(int x, int z) {