A little more cleanup.

This commit is contained in:
gmcferrin 2013-01-08 18:09:02 -05:00
parent e41ab3ac18
commit 78b8ac663e
2 changed files with 5 additions and 5 deletions

View File

@ -56,12 +56,12 @@ public class Archery {
* @param entity The entity hit by the arrows * @param entity The entity hit by the arrows
*/ */
public static void arrowRetrievalCheck(LivingEntity livingEntity) { public static void arrowRetrievalCheck(LivingEntity livingEntity) {
for (Iterator<TrackedEntity> it = trackedEntities.iterator() ; it.hasNext() ; ) { for (Iterator<TrackedEntity> entityIterator = trackedEntities.iterator(); entityIterator.hasNext(); ) {
TrackedEntity trackedEntity = it.next(); TrackedEntity trackedEntity = entityIterator.next();
if (trackedEntity.getLivingEntity() == livingEntity) { if (trackedEntity.getLivingEntity().getEntityId() == livingEntity.getEntityId()) {
Misc.dropItems(livingEntity.getLocation(), new ItemStack(Material.ARROW), trackedEntity.getArrowCount()); Misc.dropItems(livingEntity.getLocation(), new ItemStack(Material.ARROW), trackedEntity.getArrowCount());
it.remove(); entityIterator.remove();
return; return;
} }
} }

View File

@ -404,7 +404,7 @@ public class Fishing {
break; break;
case SQUID: 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())); item.setData(new MaterialData(Material.INK_SACK, DyeColor.BLACK.getDyeData()));
Misc.dropItem(location, item); Misc.dropItem(location, item);