mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
Guardian beam workaround
This commit is contained in:
parent
542d7df36b
commit
3e15f5aabc
1 changed files with 30 additions and 0 deletions
30
Spigot-Server-Patches/Guardian-beam-workaround.patch
Normal file
30
Spigot-Server-Patches/Guardian-beam-workaround.patch
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gabscap <git@gabscap.de>
|
||||||
|
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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/PacketPlayOutUpdateTime.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/PacketPlayOutUpdateTime.java
|
||||||
|
@@ -0,0 +0,0 @@ import java.io.IOException;
|
||||||
|
|
||||||
|
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() {}
|
||||||
|
@@ -0,0 +0,0 @@ public class PacketPlayOutUpdateTime implements Packet<PacketListenerPlayOut> {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ // Paper start
|
||||||
|
+ this.setWorldAge(this.getWorldAge() % 192000);
|
||||||
|
+ // Paper end
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
Loading…
Reference in a new issue