3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-03 14:50:19 +01:00

No need to reset when a set times packet is just about to be sent

Dieser Commit ist enthalten in:
Camotoy 2022-03-25 20:30:33 -04:00
Ursprung f639be6362
Commit 238be40c6a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -82,6 +82,8 @@ public final class WorldCache {
trueTitleFadeInTime = fadeInTime; trueTitleFadeInTime = fadeInTime;
trueTitleStayTime = stayTime; trueTitleStayTime = stayTime;
trueTitleFadeOutTime = fadeOutTime; trueTitleFadeOutTime = fadeOutTime;
// The translator will sync this for us
titleTimesNeedReset = false;
} }
/** /**
@ -90,7 +92,6 @@ public final class WorldCache {
public void synchronizeCorrectTitleTimes() { public void synchronizeCorrectTitleTimes() {
if (titleTimesNeedReset) { if (titleTimesNeedReset) {
forceSyncCorrectTitleTimes(); forceSyncCorrectTitleTimes();
titleTimesNeedReset = false;
} }
} }
@ -105,6 +106,7 @@ public final class WorldCache {
titlePacket.setXuid(""); titlePacket.setXuid("");
session.sendUpstreamPacket(titlePacket); session.sendUpstreamPacket(titlePacket);
titleTimesNeedReset = false;
} }
/** /**