diff options
Diffstat (limited to 'patches/server/0328-Dont-send-unnecessary-sign-update.patch')
-rw-r--r-- | patches/server/0328-Dont-send-unnecessary-sign-update.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0328-Dont-send-unnecessary-sign-update.patch b/patches/server/0328-Dont-send-unnecessary-sign-update.patch new file mode 100644 index 0000000000..4d63dfa58a --- /dev/null +++ b/patches/server/0328-Dont-send-unnecessary-sign-update.patch @@ -0,0 +1,18 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Nassim Jahnke <[email protected]> +Date: Sat, 11 Sep 2021 11:56:51 +0200 +Subject: [PATCH] Dont send unnecessary sign update + + +diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java +index 4ebae3246e3866bbdfa17e43bd0252d637885052..3af9f2d86cf2a9566e22865689101245647d05a5 100644 +--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java ++++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java +@@ -3341,6 +3341,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic + + if (!tileentitysign.isEditable() || !this.player.getUUID().equals(tileentitysign.getPlayerWhoMayEdit())) { + ServerGamePacketListenerImpl.LOGGER.warn("Player {} just tried to change non-editable sign", this.player.getName().getString()); ++ if (this.player.distanceToSqr(blockposition.getX(), blockposition.getY(), blockposition.getZ()) < 32 * 32) // Paper + this.send(tileentity.getUpdatePacket()); // CraftBukkit + return; + } |