Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-09-08 12:32:53 +02:00
No need to reset when a set times packet is just about to be sent
Dieser Commit ist enthalten in:
Ursprung
f639be6362
Commit
238be40c6a
@ -82,6 +82,8 @@ public final class WorldCache {
|
||||
trueTitleFadeInTime = fadeInTime;
|
||||
trueTitleStayTime = stayTime;
|
||||
trueTitleFadeOutTime = fadeOutTime;
|
||||
// The translator will sync this for us
|
||||
titleTimesNeedReset = false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -90,7 +92,6 @@ public final class WorldCache {
|
||||
public void synchronizeCorrectTitleTimes() {
|
||||
if (titleTimesNeedReset) {
|
||||
forceSyncCorrectTitleTimes();
|
||||
titleTimesNeedReset = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -105,6 +106,7 @@ public final class WorldCache {
|
||||
titlePacket.setXuid("");
|
||||
|
||||
session.sendUpstreamPacket(titlePacket);
|
||||
titleTimesNeedReset = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren