13
0
geforkt von Mirrors/Paper

Fix-Banner Patch: Display correct time in F3

Dieser Commit ist enthalten in:
Gabscap 2016-07-17 18:25:24 +02:00
Ursprung 949044df1a
Commit a589eedb2a

Datei anzeigen

@ -15,9 +15,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // World Age in ticks
+ // Not changed by server commands
+ // World Age must not be negative
private long a;
+ // Time of Day in ticks
+ // If negative the sun will stop moving at the Math.abs of the time
+ // Displayed in the debug screen (F3)
private long b;
public PacketPlayOutUpdateTime() {}
@ -26,8 +28,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
+ // Paper start
+ this.a = this.a % 192000; // World age must not be negative
+ this.b = this.b % 192000 - (this.b < 0 ? 192000 : 0); // Keep sign
+ this.a = this.a % 192000;
+ // Paper end
}