mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 04:02:06 -07:00
Add "Waving banner workaround"
This commit is contained in:
@@ -5037,6 +5037,49 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ private EnumResourcePackStatus() {}
|
||||
+ }
|
||||
+}
|
||||
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutUpdateTime.java b/src/main/java/net/minecraft/server/PacketPlayOutUpdateTime.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/net/minecraft/server/PacketPlayOutUpdateTime.java
|
||||
@@ -0,0 +0,0 @@
|
||||
+package net.minecraft.server;
|
||||
+
|
||||
+import java.io.IOException;
|
||||
+
|
||||
+public class PacketPlayOutUpdateTime implements Packet<PacketListenerPlayOut> {
|
||||
+
|
||||
+ private long a;
|
||||
+ private long b;
|
||||
+
|
||||
+ public PacketPlayOutUpdateTime() {}
|
||||
+
|
||||
+ public PacketPlayOutUpdateTime(long i, long j, boolean flag) {
|
||||
+ this.a = i;
|
||||
+ this.b = j;
|
||||
+ if (!flag) {
|
||||
+ this.b = -this.b;
|
||||
+ if (this.b == 0L) {
|
||||
+ this.b = -1L;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ }
|
||||
+
|
||||
+ public void a(PacketDataSerializer packetdataserializer) throws IOException {
|
||||
+ this.a = packetdataserializer.readLong();
|
||||
+ this.b = packetdataserializer.readLong();
|
||||
+ }
|
||||
+
|
||||
+ public void b(PacketDataSerializer packetdataserializer) throws IOException {
|
||||
+ packetdataserializer.writeLong(this.a);
|
||||
+ packetdataserializer.writeLong(this.b);
|
||||
+ }
|
||||
+
|
||||
+ public void a(PacketListenerPlayOut packetlistenerplayout) {
|
||||
+ packetlistenerplayout.a(this);
|
||||
+ }
|
||||
+}
|
||||
diff --git a/src/main/java/net/minecraft/server/PathfinderGoalFloat.java b/src/main/java/net/minecraft/server/PathfinderGoalFloat.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
|
||||
|
Reference in New Issue
Block a user