diff --git a/Spigot-Server-Patches/0170-Rate-limit-PacketPlayInUseItem.patch b/Spigot-Server-Patches/0170-Rate-limit-PacketPlayInUseItem.patch index dcec25f768..2a9a9bf805 100644 --- a/Spigot-Server-Patches/0170-Rate-limit-PacketPlayInUseItem.patch +++ b/Spigot-Server-Patches/0170-Rate-limit-PacketPlayInUseItem.patch @@ -1,4 +1,4 @@ -From a0ec9a7743d2349b280cd1d91559a659e61e7b08 Mon Sep 17 00:00:00 2001 +From 204b7b7e3cf0ed14e88407f662f7418c6fb4a1cf Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Sat, 10 Sep 2016 21:40:51 -0500 Subject: [PATCH] Rate limit PacketPlayInUseItem @@ -33,7 +33,7 @@ index 82e09c1..88ac278 100644 public void a(PacketListenerPlayIn packetlistenerplayin) { diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index 3d04119..1e01951 100644 +index 3d04119..2f6d58c 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java @@ -865,6 +865,10 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { @@ -47,7 +47,7 @@ index 3d04119..1e01951 100644 public void a(PacketPlayInUseItem packetplayinuseitem) { PlayerConnectionUtils.ensureMainThread(packetplayinuseitem, this, this.player.x()); if (this.player.cj()) return; // CraftBukkit -@@ -875,12 +879,24 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { +@@ -875,12 +879,22 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { EnumDirection enumdirection = packetplayinuseitem.b(); this.player.resetIdleTimer(); @@ -61,7 +61,7 @@ index 3d04119..1e01951 100644 + packetsUse = 0; + } + // Paper end -+ ++ if (blockposition.getY() >= this.minecraftServer.getMaxBuildHeight() - 1 && (enumdirection == EnumDirection.UP || blockposition.getY() >= this.minecraftServer.getMaxBuildHeight())) { ChatMessage chatmessage = new ChatMessage("build.tooHigh", new Object[] { Integer.valueOf(this.minecraftServer.getMaxBuildHeight())});