diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2013-03-13 17:33:27 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-03-15 13:28:59 -0500 |
commit | 83d29e461c85733f0113b6eb19db6e3b42da2949 (patch) | |
tree | b3063a1c28f478ab368d5ba3413a842def68c28f /src/main/java/net/minecraft/server/ItemSkull.java | |
parent | ba6e4c38cfa98ad291974195cc46d70a4f138ac1 (diff) | |
download | craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.gz craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.lz craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.xz craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.zip |
Update CraftBukkit to Minecraft 1.5
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemSkull.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemSkull.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/net/minecraft/server/ItemSkull.java b/src/main/java/net/minecraft/server/ItemSkull.java index bd2fe456..96092722 100644 --- a/src/main/java/net/minecraft/server/ItemSkull.java +++ b/src/main/java/net/minecraft/server/ItemSkull.java @@ -2,8 +2,8 @@ package net.minecraft.server; public class ItemSkull extends Item { - private static final String[] a = new String[] { "skeleton", "wither", "zombie", "char", "creeper"}; - private static final int[] b = new int[] { 224, 225, 226, 227, 228}; + private static final String[] b = new String[] { "skeleton", "wither", "zombie", "char", "creeper"}; + public static final String[] a = new String[] { "skull_skeleton", "skull_wither", "skull_zombie", "skull_char", "skull_creeper"}; public ItemSkull(int i) { super(i); @@ -45,7 +45,7 @@ public class ItemSkull extends Item { return false; } else { // CraftBukkit start - handle in ItemBlock - // world.setTypeIdAndData(i, j, k, Block.SKULL.id, l); + // world.setTypeIdAndData(i, j, k, Block.SKULL.id, l, 2); if (!ItemBlock.processBlockPlace(world, entityhuman, null, i, j, k, Block.SKULL.id, l, clickedX, clickedY, clickedZ)) { return false; } @@ -84,11 +84,11 @@ public class ItemSkull extends Item { public String d(ItemStack itemstack) { int i = itemstack.getData(); - if (i < 0 || i >= a.length) { + if (i < 0 || i >= b.length) { i = 0; } - return super.getName() + "." + a[i]; + return super.getName() + "." + b[i]; } public String l(ItemStack itemstack) { |