3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2025-01-11 15:40:51 +01:00
Paper/nms-patches/PacketPlayInBlockPlace.patch

20 Zeilen
555 B
Diff

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