From 4c69717e7b02d8dc31c5e5d5a37f1cd3d079f173 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Tue, 8 Apr 2014 13:38:47 +0100 Subject: [PATCH] Prevent player skulls from crashing 1.7.6 clients. They'll be missing their textures due skin changes --- .../0128-1.7.6-pre1-support.patch | 69 ++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/CraftBukkit-Patches/0128-1.7.6-pre1-support.patch b/CraftBukkit-Patches/0128-1.7.6-pre1-support.patch index ccba537..2377bc6 100644 --- a/CraftBukkit-Patches/0128-1.7.6-pre1-support.patch +++ b/CraftBukkit-Patches/0128-1.7.6-pre1-support.patch @@ -1,4 +1,4 @@ -From 0ffd0ed8c389b46d9a9e4c5b48a4c1754ff464d4 Mon Sep 17 00:00:00 2001 +From 24006334930fb7f4c64ffebdb0ccea93e9baa5c1 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Thu, 3 Apr 2014 17:04:18 +0100 Subject: [PATCH] 1.7.6-pre1 support @@ -221,6 +221,73 @@ index 8bab528..e746d8e 100644 public void a(PacketPlayOutListener packetplayoutlistener) { packetplayoutlistener.a(this); } +diff --git a/src/main/java/net/minecraft/server/PacketPlayOutTileEntityData.java b/src/main/java/net/minecraft/server/PacketPlayOutTileEntityData.java +new file mode 100644 +index 0000000..005f1fe +--- /dev/null ++++ b/src/main/java/net/minecraft/server/PacketPlayOutTileEntityData.java +@@ -0,0 +1,61 @@ ++package net.minecraft.server; ++ ++public class PacketPlayOutTileEntityData extends Packet { ++ ++ private int a; ++ private int b; ++ private int c; ++ private int d; ++ private NBTTagCompound e; ++ ++ public PacketPlayOutTileEntityData() {} ++ ++ public PacketPlayOutTileEntityData(int i, int j, int k, int l, NBTTagCompound nbttagcompound) { ++ this.a = i; ++ this.b = j; ++ this.c = k; ++ this.d = l; ++ this.e = nbttagcompound; ++ } ++ ++ public void a(PacketDataSerializer packetdataserializer) { ++ this.a = packetdataserializer.readInt(); ++ this.b = packetdataserializer.readShort(); ++ this.c = packetdataserializer.readInt(); ++ this.d = packetdataserializer.readUnsignedByte(); ++ this.e = packetdataserializer.b(); ++ } ++ ++ public void b(PacketDataSerializer packetdataserializer) { ++ packetdataserializer.writeInt(this.a); ++ packetdataserializer.writeShort(this.b); ++ packetdataserializer.writeInt(this.c); ++ packetdataserializer.writeByte((byte) this.d); ++ packetdataserializer.a(this.e); ++ } ++ ++ @Override ++ public void writeSnapshot(PacketDataSerializer packetdataserializer) ++ { ++ packetdataserializer.writeInt(this.a); ++ packetdataserializer.writeShort(this.b); ++ packetdataserializer.writeInt(this.c); ++ packetdataserializer.writeByte((byte) this.d); ++ if ( this.e.hasKey( "ExtraType" ) ) ++ { ++ NBTTagCompound profile = new NBTTagCompound(); ++ profile.setString( "Name", this.e.getString( "ExtraType" ) ); ++ profile.setString( "Id", "" ); ++ this.e.set( "Owner", profile ); ++ } ++ packetdataserializer.a(this.e); ++ } ++ ++ public void a(PacketPlayOutListener packetplayoutlistener) { ++ packetplayoutlistener.a(this); ++ } ++ ++ public void handle(PacketListener packetlistener) { ++ this.a((PacketPlayOutListener) packetlistener); ++ } ++} diff --git a/src/main/java/net/minecraft/server/PacketStatusListener.java b/src/main/java/net/minecraft/server/PacketStatusListener.java index f9da452..fa493ca 100644 --- a/src/main/java/net/minecraft/server/PacketStatusListener.java