PaperMC/nms-patches/PacketPlayInBlockPlace.patch
2016-03-01 09:32:45 +11:00

19 lines
555 B
Diff

--- 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);
}