3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00
Paper/nms-patches/PacketPlayInBlockPlace.patch

29 Zeilen
942 B
Diff

2015-02-26 23:41:06 +01:00
--- /home/matt/mc-dev-private//net/minecraft/server/PacketPlayInBlockPlace.java 2015-02-26 22:40:22.907608136 +0000
+++ src/main/java/net/minecraft/server/PacketPlayInBlockPlace.java 2015-02-26 22:40:22.907608136 +0000
@@ -12,6 +12,8 @@
2014-11-29 00:27:09 +01:00
private float f;
private float g;
2015-02-26 23:41:06 +01:00
+ public long timestamp; // CraftBukkit
+
2014-11-29 00:27:09 +01:00
public PacketPlayInBlockPlace() {}
2015-02-26 23:41:06 +01:00
public PacketPlayInBlockPlace(ItemStack itemstack) {
@@ -28,6 +30,7 @@
2014-11-29 00:27:09 +01:00
}
2015-02-26 23:41:06 +01:00
public void a(PacketDataSerializer packetdataserializer) throws IOException {
2014-11-29 00:27:09 +01:00
+ timestamp = System.currentTimeMillis(); // CraftBukkit
this.b = packetdataserializer.c();
this.c = packetdataserializer.readUnsignedByte();
this.d = packetdataserializer.i();
2015-02-26 23:41:06 +01:00
@@ -72,8 +75,4 @@
public float f() {
2014-11-29 00:27:09 +01:00
return this.g;
}
2015-02-26 23:41:06 +01:00
-
2014-11-29 00:27:09 +01:00
- public void a(PacketListener packetlistener) {
- this.a((PacketListenerPlayIn) packetlistener);
2015-02-26 23:41:06 +01:00
- }
2014-11-29 00:27:09 +01:00
}