Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-25 15:50:14 +01:00
Javadoc fix and tiny teleport optimization
Dieser Commit ist enthalten in:
Ursprung
af06ac5143
Commit
ce748990a4
@ -187,9 +187,7 @@ public class GeyserSession implements CommandSender {
|
|||||||
private final Long2ObjectMap<ClientboundMapItemDataPacket> storedMaps = Long2ObjectMaps.synchronize(new Long2ObjectOpenHashMap<>());
|
private final Long2ObjectMap<ClientboundMapItemDataPacket> storedMaps = Long2ObjectMaps.synchronize(new Long2ObjectOpenHashMap<>());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores the differences between Java and Bedrock biome network IDs.
|
* Stores the map 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.
|
|
||||||
*/
|
*/
|
||||||
private final Int2IntMap biomeTranslations = new Int2IntOpenHashMap();
|
private final Int2IntMap biomeTranslations = new Int2IntOpenHashMap();
|
||||||
|
|
||||||
@ -1166,9 +1164,9 @@ public class GeyserSession implements CommandSender {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (teleportID != -1) {
|
||||||
ObjectIterator<Int2ObjectMap.Entry<TeleportCache>> it = teleportMap.int2ObjectEntrySet().iterator();
|
ObjectIterator<Int2ObjectMap.Entry<TeleportCache>> it = teleportMap.int2ObjectEntrySet().iterator();
|
||||||
|
|
||||||
if (teleportID != -1) {
|
|
||||||
// Confirm the current teleport and any earlier ones
|
// Confirm the current teleport and any earlier ones
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
TeleportCache entry = it.next().getValue();
|
TeleportCache entry = it.next().getValue();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren