mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 08:17:44 +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
|
+ // World Age in ticks
|
||||||
+ // Not changed by server commands
|
+ // Not changed by server commands
|
||||||
|
+ // World Age must not be negative
|
||||||
private long a;
|
private long a;
|
||||||
+ // Time of Day in ticks
|
+ // Time of Day in ticks
|
||||||
+ // If negative the sun will stop moving at the Math.abs of the time
|
+ // If negative the sun will stop moving at the Math.abs of the time
|
||||||
|
+ // Displayed in the debug screen (F3)
|
||||||
private long b;
|
private long b;
|
||||||
|
|
||||||
public PacketPlayOutUpdateTime() {}
|
public PacketPlayOutUpdateTime() {}
|
||||||
@ -26,8 +28,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
}
|
}
|
||||||
|
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ this.a = this.a % 192000; // World age must not be negative
|
+ this.a = this.a % 192000;
|
||||||
+ this.b = this.b % 192000 - (this.b < 0 ? 192000 : 0); // Keep sign
|
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user