Skip to content

Commit

Permalink
Fixed: "SkullOwner" tag on player heads
Browse files Browse the repository at this point in the history
The "SkullOwner" NBT tag was getting created but was never actached to the itemstack.
  • Loading branch information
Talonius-TD committed Jan 8, 2014
1 parent 921fe9a commit f02619f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/tconstruct/util/TEventHandler.java
Expand Up @@ -414,6 +414,7 @@ public void onLivingDrop (LivingDropsEvent event)
ItemStack dropStack = new ItemStack(Item.skull.itemID, 1, 3);
NBTTagCompound nametag = new NBTTagCompound();
nametag.setString("SkullOwner", player.username);
dropStack.setTagCompound(nametag);
addDrops(event, dropStack);
}

Expand All @@ -431,6 +432,7 @@ else if (event.source.damageType.equals("player"))
ItemStack dropStack = new ItemStack(Item.skull.itemID, 1, 3);
NBTTagCompound nametag = new NBTTagCompound();
nametag.setString("SkullOwner", player.username);
dropStack.setTagCompound(nametag);
addDrops(event, dropStack);
}
}
Expand Down

0 comments on commit f02619f

Please sign in to comment.