From 78b8ac663e19d2c7e39355268d1b95f38ae8d0ac Mon Sep 17 00:00:00 2001 From: gmcferrin Date: Tue, 8 Jan 2013 18:09:02 -0500 Subject: [PATCH] A little more cleanup. --- .../java/com/gmail/nossr50/skills/archery/Archery.java | 8 ++++---- .../java/com/gmail/nossr50/skills/gathering/Fishing.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/archery/Archery.java b/src/main/java/com/gmail/nossr50/skills/archery/Archery.java index 4d21f8628..b261731a1 100644 --- a/src/main/java/com/gmail/nossr50/skills/archery/Archery.java +++ b/src/main/java/com/gmail/nossr50/skills/archery/Archery.java @@ -56,12 +56,12 @@ public class Archery { * @param entity The entity hit by the arrows */ public static void arrowRetrievalCheck(LivingEntity livingEntity) { - for (Iterator it = trackedEntities.iterator() ; it.hasNext() ; ) { - TrackedEntity trackedEntity = it.next(); + for (Iterator entityIterator = trackedEntities.iterator(); entityIterator.hasNext(); ) { + TrackedEntity trackedEntity = entityIterator.next(); - if (trackedEntity.getLivingEntity() == livingEntity) { + if (trackedEntity.getLivingEntity().getEntityId() == livingEntity.getEntityId()) { Misc.dropItems(livingEntity.getLocation(), new ItemStack(Material.ARROW), trackedEntity.getArrowCount()); - it.remove(); + entityIterator.remove(); return; } } diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java b/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java index f32705a5a..0567bf9cd 100755 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java @@ -404,7 +404,7 @@ public class Fishing { break; case SQUID: - ItemStack item = new ItemStack(Material.INK_SACK, 1, (short) 0); + ItemStack item = new ItemStack(Material.INK_SACK, 1); item.setData(new MaterialData(Material.INK_SACK, DyeColor.BLACK.getDyeData())); Misc.dropItem(location, item);