summaryrefslogtreecommitdiffstats
path: root/nms-patches/PacketPlayInBlockPlace.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/PacketPlayInBlockPlace.patch')
-rw-r--r--nms-patches/PacketPlayInBlockPlace.patch25
1 files changed, 8 insertions, 17 deletions
diff --git a/nms-patches/PacketPlayInBlockPlace.patch b/nms-patches/PacketPlayInBlockPlace.patch
index c0081922..247e93c2 100644
--- a/nms-patches/PacketPlayInBlockPlace.patch
+++ b/nms-patches/PacketPlayInBlockPlace.patch
@@ -1,28 +1,19 @@
--- a/net/minecraft/server/PacketPlayInBlockPlace.java
+++ b/net/minecraft/server/PacketPlayInBlockPlace.java
-@@ -12,6 +12,8 @@
- private float f;
- private float g;
+@@ -6,6 +6,8 @@
+
+ private EnumHand a;
+ public long timestamp; // CraftBukkit
+
public PacketPlayInBlockPlace() {}
- public PacketPlayInBlockPlace(ItemStack itemstack) {
-@@ -28,6 +30,7 @@
+ public PacketPlayInBlockPlace(EnumHand enumhand) {
+@@ -13,6 +15,7 @@
}
public void a(PacketDataSerializer packetdataserializer) throws IOException {
-+ timestamp = System.currentTimeMillis(); // CraftBukkit
- this.b = packetdataserializer.c();
- this.c = packetdataserializer.readUnsignedByte();
- this.d = packetdataserializer.i();
-@@ -72,8 +75,4 @@
- public float f() {
- return this.g;
++ this.timestamp = System.currentTimeMillis(); // CraftBukkit
+ this.a = (EnumHand) packetdataserializer.a(EnumHand.class);
}
--
-- public void a(PacketListener packetlistener) {
-- this.a((PacketListenerPlayIn) packetlistener);
-- }
- }
+