summaryrefslogtreecommitdiffstats
path: root/nms-patches/PacketPlayInBlockPlace.patch
blob: c51173a150be52d6b2343dea63a18483841d8423 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- ../work/decompile-8eb82bde//net/minecraft/server/PacketPlayInBlockPlace.java	2014-11-28 17:43:43.273707431 +0000
+++ src/main/java/net/minecraft/server/PacketPlayInBlockPlace.java	2014-11-28 17:38:21.000000000 +0000
@@ -9,6 +9,8 @@
     private float e;
     private float f;
     private float g;
+    
+    public long timestamp; // CraftBukkit
 
     public PacketPlayInBlockPlace() {}
 
@@ -26,6 +28,7 @@
     }
 
     public void a(PacketDataSerializer packetdataserializer) {
+        timestamp = System.currentTimeMillis(); // CraftBukkit
         this.b = packetdataserializer.c();
         this.c = packetdataserializer.readUnsignedByte();
         this.d = packetdataserializer.i();
@@ -71,7 +74,10 @@
         return this.g;
     }
 
-    public void a(PacketListener packetlistener) {
-        this.a((PacketListenerPlayIn) packetlistener);
+    // CraftBukkit start - fix decompile error
+    @Override
+    public void a(PacketListener pl) {
+        a((PacketListenerPlayIn)pl);
     }
+    // CraftBukkit end
 }