mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Fix-Banner Patch: Display correct time in F3
This commit is contained in:
parent
949044df1a
commit
a589eedb2a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user