mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Resolving minor merge conflict.
This commit is contained in:
commit
e5592c5da8
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -403,14 +403,14 @@ public class Fishing {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SQUID:
|
case SQUID:
|
||||||
ItemStack item;
|
ItemStack item;
|
||||||
try {
|
try {
|
||||||
item = (new MaterialData(Material.INK_SACK, DyeColor.BLACK.getDyeData())).toItemStack(1);
|
item = (new MaterialData(Material.INK_SACK, DyeColor.BLACK.getDyeData())).toItemStack(1);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
item = (new MaterialData(Material.INK_SACK, (byte) 0)).toItemStack(1);
|
item = (new MaterialData(Material.INK_SACK, (byte) 0)).toItemStack(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
Misc.dropItem(location, item);
|
Misc.dropItem(location, item);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user