Prevent player skulls from crashing 1.7.6 clients. They'll be missing their textures due skin changes
This commit is contained in:
parent
ac8f1531ec
commit
4c69717e7b
@ -1,4 +1,4 @@
|
|||||||
From 0ffd0ed8c389b46d9a9e4c5b48a4c1754ff464d4 Mon Sep 17 00:00:00 2001
|
From 24006334930fb7f4c64ffebdb0ccea93e9baa5c1 Mon Sep 17 00:00:00 2001
|
||||||
From: Thinkofdeath <thethinkofdeath@gmail.com>
|
From: Thinkofdeath <thethinkofdeath@gmail.com>
|
||||||
Date: Thu, 3 Apr 2014 17:04:18 +0100
|
Date: Thu, 3 Apr 2014 17:04:18 +0100
|
||||||
Subject: [PATCH] 1.7.6-pre1 support
|
Subject: [PATCH] 1.7.6-pre1 support
|
||||||
@ -221,6 +221,73 @@ index 8bab528..e746d8e 100644
|
|||||||
public void a(PacketPlayOutListener packetplayoutlistener) {
|
public void a(PacketPlayOutListener packetplayoutlistener) {
|
||||||
packetplayoutlistener.a(this);
|
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
|
diff --git a/src/main/java/net/minecraft/server/PacketStatusListener.java b/src/main/java/net/minecraft/server/PacketStatusListener.java
|
||||||
index f9da452..fa493ca 100644
|
index f9da452..fa493ca 100644
|
||||||
--- a/src/main/java/net/minecraft/server/PacketStatusListener.java
|
--- a/src/main/java/net/minecraft/server/PacketStatusListener.java
|
||||||
|
Loading…
Reference in New Issue
Block a user