PaperMC/nms-patches/PacketPlayInBlockPlace.patch

20 lines
555 B
Diff
Raw Normal View History

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/PacketPlayInBlockPlace.java
+++ b/net/minecraft/server/PacketPlayInBlockPlace.java
2016-02-29 22:32:46 +01:00
@@ -6,6 +6,8 @@
private EnumHand a;
2014-11-29 00:27:09 +01:00
2015-02-26 23:41:06 +01:00
+ public long timestamp; // CraftBukkit
+
2014-11-29 00:27:09 +01:00
public PacketPlayInBlockPlace() {}
2016-02-29 22:32:46 +01:00
public PacketPlayInBlockPlace(EnumHand enumhand) {
@@ -13,6 +15,7 @@
2014-11-29 00:27:09 +01:00
}
2015-02-26 23:41:06 +01:00
public void a(PacketDataSerializer packetdataserializer) throws IOException {
2016-02-29 22:32:46 +01:00
+ this.timestamp = System.currentTimeMillis(); // CraftBukkit
this.a = (EnumHand) packetdataserializer.a(EnumHand.class);
2014-11-29 00:27:09 +01:00
}
2016-02-29 22:32:46 +01:00