aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches-Unmapped/0634-Guardian-beam-workaround.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches-Unmapped/0634-Guardian-beam-workaround.patch')
-rw-r--r--Spigot-Server-Patches-Unmapped/0634-Guardian-beam-workaround.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/Spigot-Server-Patches-Unmapped/0634-Guardian-beam-workaround.patch b/Spigot-Server-Patches-Unmapped/0634-Guardian-beam-workaround.patch
new file mode 100644
index 0000000000..4439204159
--- /dev/null
+++ b/Spigot-Server-Patches-Unmapped/0634-Guardian-beam-workaround.patch
@@ -0,0 +1,30 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Gabscap <[email protected]>
+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/network/protocol/game/PacketPlayOutUpdateTime.java b/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutUpdateTime.java
+index a69e60a8934493f6786ce3d425f6dccb6e4befdd..3086ee023685781d94e2fb99fc8dff5264f01165 100644
+--- a/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutUpdateTime.java
++++ b/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutUpdateTime.java
+@@ -6,7 +6,7 @@ import net.minecraft.network.protocol.Packet;
+
+ public class PacketPlayOutUpdateTime implements Packet<PacketListenerPlayOut> {
+
+- 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() {}
+@@ -21,6 +21,9 @@ public class PacketPlayOutUpdateTime implements Packet<PacketListenerPlayOut> {
+ }
+ }
+
++ // Paper start
++ this.setWorldAge(this.getWorldAge() % 192000);
++ // Paper end
+ }
+
+ @Override