mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 18:47:40 +01:00
Fix-Banner Patch: Display correct time in F3
This commit is contained in:
parent
949044df1a
commit
a589eedb2a
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue