summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/BlockSkull.java
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2014-04-10 20:04:38 -0500
committerTravis Watkins <amaranth@ubuntu.com>2014-04-11 22:28:35 -0500
commit8f771c737850130534b0fade70494f7ce3cbc8fd (patch)
treee4180121cdaf4f15b325aa059469b44975fca8a4 /src/main/java/net/minecraft/server/BlockSkull.java
parent0df7555cecff17ffab68b8280dcf8471b10f020c (diff)
downloadcraftbukkit-8f771c737850130534b0fade70494f7ce3cbc8fd.tar
craftbukkit-8f771c737850130534b0fade70494f7ce3cbc8fd.tar.gz
craftbukkit-8f771c737850130534b0fade70494f7ce3cbc8fd.tar.lz
craftbukkit-8f771c737850130534b0fade70494f7ce3cbc8fd.tar.xz
craftbukkit-8f771c737850130534b0fade70494f7ce3cbc8fd.zip
Update CraftBukkit to Minecraft 1.7.8
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockSkull.java')
-rw-r--r--src/main/java/net/minecraft/server/BlockSkull.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/BlockSkull.java b/src/main/java/net/minecraft/server/BlockSkull.java
index e24b7408..b05f4639 100644
--- a/src/main/java/net/minecraft/server/BlockSkull.java
+++ b/src/main/java/net/minecraft/server/BlockSkull.java
@@ -84,9 +84,12 @@ public class BlockSkull extends BlockContainer {
ItemStack itemstack = new ItemStack(Items.SKULL, 1, this.getDropData(world, i, j, k));
TileEntitySkull tileentityskull = (TileEntitySkull) world.getTileEntity(i, j, k);
- if (tileentityskull.getSkullType() == 3 && tileentityskull.getExtraType() != null && tileentityskull.getExtraType().length() > 0) {
+ if (tileentityskull.getSkullType() == 3 && tileentityskull.getGameProfile() != null) {
itemstack.setTag(new NBTTagCompound());
- itemstack.getTag().setString("SkullOwner", tileentityskull.getExtraType());
+ NBTTagCompound nbttagcompound = new NBTTagCompound();
+
+ GameProfileSerializer.a(nbttagcompound, tileentityskull.getGameProfile());
+ itemstack.getTag().set("SkullOwner", nbttagcompound);
}
this.a(world, i, j, k, itemstack);
@@ -112,9 +115,12 @@ public class BlockSkull extends BlockContainer {
ItemStack itemstack = new ItemStack(Items.SKULL, 1, this.getDropData(world, i, j, k));
TileEntitySkull tileentityskull = (TileEntitySkull) world.getTileEntity(i, j, k);
- if (tileentityskull.getSkullType() == 3 && tileentityskull.getExtraType() != null && tileentityskull.getExtraType().length() > 0) {
+ if (tileentityskull.getSkullType() == 3 && tileentityskull.getGameProfile() != null) {
itemstack.setTag(new NBTTagCompound());
- itemstack.getTag().setString("SkullOwner", tileentityskull.getExtraType());
+ NBTTagCompound nbttagcompound = new NBTTagCompound();
+
+ GameProfileSerializer.a(nbttagcompound, tileentityskull.getGameProfile());
+ itemstack.getTag().set("SkullOwner", nbttagcompound);
}
this.a(world, i, j, k, itemstack);