mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
Re-add the timestamp for spigot
This commit is contained in:
parent
e795876491
commit
40d6bb2dc2
32
nms-patches/PacketPlayInBlockPlace.patch
Normal file
32
nms-patches/PacketPlayInBlockPlace.patch
Normal file
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user