Skip to content

Commit

Permalink
I am the most competent developer, I'm moving from github to duplicat…
Browse files Browse the repository at this point in the history
…e folders
  • Loading branch information
mcmonkey4eva committed May 20, 2018
1 parent eb62b94 commit 56a770b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -53,7 +53,7 @@ public Collection<PotionEffect> getEffectsList() {
return entity.getLivingEntity().getActivePotionEffects();
}
else if (entity.getBukkitEntityType() == EntityType.TIPPED_ARROW) {
return ((TippedArrow) entity).getCustomEffects();
return ((TippedArrow) entity.getBukkitEntity()).getCustomEffects();
}
return new ArrayList<PotionEffect>();
}
Expand Down Expand Up @@ -161,7 +161,7 @@ public void adjust(Mechanism mechanism) {
Integer.valueOf(split.get(1))));
}
else if (entity.getBukkitEntityType() == EntityType.TIPPED_ARROW) {
((TippedArrow) entity).addCustomEffect(new PotionEffect(effectType, Integer.valueOf(split.get(2)),
((TippedArrow) entity.getBukkitEntity()).addCustomEffect(new PotionEffect(effectType, Integer.valueOf(split.get(2)),
Integer.valueOf(split.get(1))), true);
}
}
Expand Down

0 comments on commit 56a770b

Please sign in to comment.