mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Remove old lines of code
This commit is contained in:
parent
5c62b47175
commit
d08c13a7e3
1 changed files with 1 additions and 4 deletions
|
@ -41,8 +41,6 @@ import com.nukkitx.protocol.bedrock.packet.SetTimePacket;
|
||||||
@Translator(packet = ServerUpdateTimePacket.class)
|
@Translator(packet = ServerUpdateTimePacket.class)
|
||||||
public class JavaUpdateTimeTranslator extends PacketTranslator<ServerUpdateTimePacket> {
|
public class JavaUpdateTimeTranslator extends PacketTranslator<ServerUpdateTimePacket> {
|
||||||
|
|
||||||
// doDaylightCycle per-player for multi-world support
|
|
||||||
//static Long2BooleanMap daylightCycles = new Long2BooleanOpenHashMap();
|
|
||||||
// If negative, the last time is stored so we know it's not some plugin behavior doing weird things.
|
// If negative, the last time is stored so we know it's not some plugin behavior doing weird things.
|
||||||
// Per-player for multi-world support
|
// Per-player for multi-world support
|
||||||
static Long2LongMap lastRecordedTimes = new Long2LongOpenHashMap();
|
static Long2LongMap lastRecordedTimes = new Long2LongOpenHashMap();
|
||||||
|
@ -52,7 +50,6 @@ public class JavaUpdateTimeTranslator extends PacketTranslator<ServerUpdateTimeP
|
||||||
|
|
||||||
// Bedrock sends a GameRulesChangedPacket if there is no daylight cycle
|
// Bedrock sends a GameRulesChangedPacket if there is no daylight cycle
|
||||||
// Java just sends a negative long if there is no daylight cycle
|
// Java just sends a negative long if there is no daylight cycle
|
||||||
//boolean doDayLightCycle = daylightCycles.getOrDefault(session.getPlayerEntity().getEntityId(), true);
|
|
||||||
long lastTime = lastRecordedTimes.getOrDefault(session.getPlayerEntity().getEntityId(), 0);
|
long lastTime = lastRecordedTimes.getOrDefault(session.getPlayerEntity().getEntityId(), 0);
|
||||||
long time = packet.getTime();
|
long time = packet.getTime();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue