diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-12-17 01:31:41 -0600 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-12-17 01:31:41 -0600 |
commit | 78f48258d8ab491065498492588acc5287a6fb6c (patch) | |
tree | 11027439669a05c335fc6cb07c12a82b9c551f31 /src/main/java/net/minecraft/server/EntityIronGolem.java | |
parent | d20d4dc43aaa74fba457c44994cda8180523c9db (diff) | |
download | craftbukkit-78f48258d8ab491065498492588acc5287a6fb6c.tar craftbukkit-78f48258d8ab491065498492588acc5287a6fb6c.tar.gz craftbukkit-78f48258d8ab491065498492588acc5287a6fb6c.tar.lz craftbukkit-78f48258d8ab491065498492588acc5287a6fb6c.tar.xz craftbukkit-78f48258d8ab491065498492588acc5287a6fb6c.zip |
Implement ItemFactory and ItemMeta values. Adds BUKKIT-15
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityIronGolem.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityIronGolem.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/EntityIronGolem.java b/src/main/java/net/minecraft/server/EntityIronGolem.java index 5b6ab93d..e6e260fa 100644 --- a/src/main/java/net/minecraft/server/EntityIronGolem.java +++ b/src/main/java/net/minecraft/server/EntityIronGolem.java @@ -150,13 +150,13 @@ public class EntityIronGolem extends EntityGolem { int k; if (j > 0) { - loot.add(new CraftItemStack(Block.RED_ROSE.id, j)); + loot.add(CraftItemStack.asNewCraftStack(Item.byId[Block.RED_ROSE.id], j)); } k = 3 + this.random.nextInt(3); if (k > 0) { - loot.add(new CraftItemStack(Item.IRON_INGOT.id, k)); + loot.add(CraftItemStack.asNewCraftStack(Item.IRON_INGOT, k)); } org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(this, loot); |