From 086d2011846e23fbb2b1e6f4424f4ef9d212bb0b Mon Sep 17 00:00:00 2001 From: HexedHero <6012891+HexedHero@users.noreply.github.com> Date: Thu, 31 Dec 2020 22:45:30 +0000 Subject: [PATCH] Guardian beam workaround --- .../0637-Guardian-beam-workaround.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Spigot-Server-Patches/0637-Guardian-beam-workaround.patch diff --git a/Spigot-Server-Patches/0637-Guardian-beam-workaround.patch b/Spigot-Server-Patches/0637-Guardian-beam-workaround.patch new file mode 100644 index 0000000000..39b005875d --- /dev/null +++ b/Spigot-Server-Patches/0637-Guardian-beam-workaround.patch @@ -0,0 +1,30 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Gabscap +Date: Sat, 19 Mar 2016 22:25:11 +0100 +Subject: [PATCH] Guardian beam workaround + +This patch is a workaround for MC-165595 + +diff --git a/src/main/java/net/minecraft/server/PacketPlayOutUpdateTime.java b/src/main/java/net/minecraft/server/PacketPlayOutUpdateTime.java +index 88c3d7efaf467c1c1487f589c2cdbfb6aba734ec..1b9b43ee696575d986c25cafec07d863acb951a7 100644 +--- a/src/main/java/net/minecraft/server/PacketPlayOutUpdateTime.java ++++ b/src/main/java/net/minecraft/server/PacketPlayOutUpdateTime.java +@@ -4,7 +4,7 @@ import java.io.IOException; + + public class PacketPlayOutUpdateTime implements Packet { + +- private long a; ++ private long a; private final void setWorldAge(final long age) { this.a = age; } private final long getWorldAge() { return this.a; } // Paper - OBFHELPER + private long b; + + public PacketPlayOutUpdateTime() {} +@@ -19,6 +19,9 @@ public class PacketPlayOutUpdateTime implements Packet { + } + } + ++ // Paper start ++ this.setWorldAge(this.getWorldAge() % 192000); ++ // Paper end + } + + @Override