Skip to content

Commit

Permalink
Follow up commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiterio authored and Taiterio committed May 17, 2015
1 parent dabb70e commit 3f99ab1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/taiter/ce/Enchantments/Bow/Volley.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ private void volley(EntityShootBowEvent e, ItemStack item, int lvl) {
arrow.setShooter(p);
// Need to make sure arrow has same speed as original arrow.
arrow.setVelocity(newDir.normalize().multiply(velocity.length()));
arrow.setMetadata("ce.Volley", new FixedMetadataValue(getPlugin(), null)); //Control metadata to prevent players from duplicating arrows
if(i > 0)
arrow.setMetadata("ce.Volley", new FixedMetadataValue(getPlugin(), null)); //Control metadata to prevent players from duplicating arrows
}
}

Expand Down

0 comments on commit 3f99ab1

Please sign in to comment.