2021-06-14 20:50:22 +02:00
|
|
|
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/network/protocol/game/ClientboundSetTimePacket.java b/src/main/java/net/minecraft/network/protocol/game/ClientboundSetTimePacket.java
|
2021-06-14 21:17:47 +02:00
|
|
|
index 9ec6145fe04ec64bbee8ec6a837719caebdbc6f5..689ad22925b2561f7c8db961743eb1f821dbb25f 100644
|
2021-06-14 20:50:22 +02:00
|
|
|
--- a/src/main/java/net/minecraft/network/protocol/game/ClientboundSetTimePacket.java
|
|
|
|
+++ b/src/main/java/net/minecraft/network/protocol/game/ClientboundSetTimePacket.java
|
|
|
|
@@ -8,7 +8,7 @@ public class ClientboundSetTimePacket implements Packet<ClientGamePacketListener
|
|
|
|
private final long dayTime;
|
|
|
|
|
|
|
|
public ClientboundSetTimePacket(long time, long timeOfDay, boolean doDaylightCycle) {
|
|
|
|
- this.gameTime = time;
|
2021-06-14 21:17:47 +02:00
|
|
|
+ this.gameTime = time % 192000; // Paper - fix guardian beam
|
2021-06-14 20:50:22 +02:00
|
|
|
long l = timeOfDay;
|
|
|
|
if (!doDaylightCycle) {
|
|
|
|
l = -timeOfDay;
|