[ WHITESPACE ]

This commit is contained in:
Zach Brown 2016-09-10 22:09:14 -05:00
parent c02c01b2c5
commit 8a8fc89534
No known key found for this signature in database
GPG Key ID: CC9DA35FC5450B76
1 changed files with 4 additions and 4 deletions

View File

@ -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 <zach.brown@destroystokyo.com> From: Zach Brown <zach.brown@destroystokyo.com>
Date: Sat, 10 Sep 2016 21:40:51 -0500 Date: Sat, 10 Sep 2016 21:40:51 -0500
Subject: [PATCH] Rate limit PacketPlayInUseItem Subject: [PATCH] Rate limit PacketPlayInUseItem
@ -33,7 +33,7 @@ index 82e09c1..88ac278 100644
public void a(PacketListenerPlayIn packetlistenerplayin) { 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 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 --- a/src/main/java/net/minecraft/server/PlayerConnection.java
+++ b/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 { @@ -865,6 +865,10 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable {
@ -47,7 +47,7 @@ index 3d04119..1e01951 100644
public void a(PacketPlayInUseItem packetplayinuseitem) { public void a(PacketPlayInUseItem packetplayinuseitem) {
PlayerConnectionUtils.ensureMainThread(packetplayinuseitem, this, this.player.x()); PlayerConnectionUtils.ensureMainThread(packetplayinuseitem, this, this.player.x());
if (this.player.cj()) return; // CraftBukkit 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(); EnumDirection enumdirection = packetplayinuseitem.b();
this.player.resetIdleTimer(); this.player.resetIdleTimer();