3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-27 08:30:12 +01:00
Dieser Commit ist enthalten in:
DoctorMacc 2020-04-13 10:58:10 -04:00
Ursprung 1714445df9
Commit 35a16996b5

Datei anzeigen

@ -59,7 +59,7 @@ public class JavaUpdateTimeTranslator extends PacketTranslator<ServerUpdateTimeP
// TODO: Performance efficient to always do this? // TODO: Performance efficient to always do this?
lastRecordedTimes.put(session.getPlayerEntity().getEntityId(), time); lastRecordedTimes.put(session.getPlayerEntity().getEntityId(), time);
} }
if (lastTime < 0 && time > 0) { if (lastTime < 0 && time >= 0) {
setDoDayLightGamerule(session, true); setDoDayLightGamerule(session, true);
} else if (lastTime != time && time < 0) { } else if (lastTime != time && time < 0) {
setDoDayLightGamerule(session, false); setDoDayLightGamerule(session, false);