summaryrefslogtreecommitdiffstats
path: root/nms-patches/PacketPlayInBlockPlace.patch
blob: 247e93c223dfb39c350d3b459a43aee7b6ec7532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/net/minecraft/server/PacketPlayInBlockPlace.java
+++ b/net/minecraft/server/PacketPlayInBlockPlace.java
@@ -6,6 +6,8 @@
 
     private EnumHand a;
 
+    public long timestamp; // CraftBukkit
+
     public PacketPlayInBlockPlace() {}
 
     public PacketPlayInBlockPlace(EnumHand enumhand) {
@@ -13,6 +15,7 @@
     }
 
     public void a(PacketDataSerializer packetdataserializer) throws IOException {
+        this.timestamp = System.currentTimeMillis(); // CraftBukkit
         this.a = (EnumHand) packetdataserializer.a(EnumHand.class);
     }