Skip to content

Instantly share code, notes, and snippets.

@EricZeiberg
Created March 6, 2014 01:41
Show Gist options
  • Save EricZeiberg/9380527 to your computer and use it in GitHub Desktop.
Save EricZeiberg/9380527 to your computer and use it in GitHub Desktop.
List<ItemStack> itemStackL = event.getDrops();
for (ItemStack i : itemStackL){
if (i != null){
for (ItemStack i2 : Scrimmage.getRotation().getSlot().getMap().getItemRemove()){
if (i2 != null){
if (i.isSimilar(i2)){
event.getDrops().remove(i);
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment