summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-11-28 23:27:09 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2014-11-28 23:27:09 +0000
commit40d6bb2dc294dca00c9d0799847050aff019f8b9 (patch)
treebe0fa8127f0de3d67031bbcf4dbae4f6c2e9d88f /nms-patches
parente79587649124b0c04257a7548cda6b194bb3cf7a (diff)
downloadcraftbukkit-40d6bb2dc294dca00c9d0799847050aff019f8b9.tar
craftbukkit-40d6bb2dc294dca00c9d0799847050aff019f8b9.tar.gz
craftbukkit-40d6bb2dc294dca00c9d0799847050aff019f8b9.tar.lz
craftbukkit-40d6bb2dc294dca00c9d0799847050aff019f8b9.tar.xz
craftbukkit-40d6bb2dc294dca00c9d0799847050aff019f8b9.zip
Re-add the timestamp for spigot
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/PacketPlayInBlockPlace.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/nms-patches/PacketPlayInBlockPlace.patch b/nms-patches/PacketPlayInBlockPlace.patch
new file mode 100644
index 00000000..c51173a1
--- /dev/null
+++ b/nms-patches/PacketPlayInBlockPlace.patch
@@ -0,0 +1,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
+ }