mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
No need to reset when a set times packet is just about to be sent
This commit is contained in:
parent
f639be6362
commit
238be40c6a
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue