From ce748990a4ba67589d75c3b78eef89c994463b88 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Sun, 15 Aug 2021 14:57:02 -0400 Subject: [PATCH] Javadoc fix and tiny teleport optimization --- .../geysermc/connector/network/session/GeyserSession.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java b/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java index 1c5675dc4..74ff369de 100644 --- a/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java +++ b/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java @@ -187,9 +187,7 @@ public class GeyserSession implements CommandSender { private final Long2ObjectMap storedMaps = Long2ObjectMaps.synchronize(new Long2ObjectOpenHashMap<>()); /** - * Stores the differences between Java and Bedrock biome network IDs. - * If Java's ocean biome is 0, and Bedrock's is 0, it will not be in the list. - * If Java's bamboo biome is 42, and Bedrock's is 48, it will be in this list. + * Stores the map between Java and Bedrock biome network IDs. */ private final Int2IntMap biomeTranslations = new Int2IntOpenHashMap(); @@ -1166,9 +1164,9 @@ public class GeyserSession implements CommandSender { } } - ObjectIterator> it = teleportMap.int2ObjectEntrySet().iterator(); - if (teleportID != -1) { + ObjectIterator> it = teleportMap.int2ObjectEntrySet().iterator(); + // Confirm the current teleport and any earlier ones while (it.hasNext()) { TeleportCache entry = it.next().getValue();