summaryrefslogtreecommitdiffstats
path: root/nms-patches/PacketPlayInBlockPlace.patch
blob: b125d99eb7b6007dad2377e69488dd48affcfffe (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
--- /home/matt/mc-dev-private//net/minecraft/server/PacketPlayInBlockPlace.java	2015-02-26 22:40:22.907608136 +0000
+++ src/main/java/net/minecraft/server/PacketPlayInBlockPlace.java	2015-02-26 22:40:22.907608136 +0000
@@ -12,6 +12,8 @@
     private float f;
     private float g;
 
+    public long timestamp; // CraftBukkit
+
     public PacketPlayInBlockPlace() {}
 
     public PacketPlayInBlockPlace(ItemStack itemstack) {
@@ -28,6 +30,7 @@
     }
 
     public void a(PacketDataSerializer packetdataserializer) throws IOException {
+        timestamp = System.currentTimeMillis(); // CraftBukkit
         this.b = packetdataserializer.c();
         this.c = packetdataserializer.readUnsignedByte();
         this.d = packetdataserializer.i();
@@ -72,8 +75,4 @@
     public float f() {
         return this.g;
     }
-
-    public void a(PacketListener packetlistener) {
-        this.a((PacketListenerPlayIn) packetlistener);
-    }
 }