Last active
March 16, 2019 22:18
-
-
Save perky/4413516 to your computer and use it in GitHub Desktop.
Caused by: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.remove(Unknown Source) Line 9: potionKey.remove();
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void cureAllPotions(World world, EntityPlayer entityPlayer) { | |
List<PotionEffect> activePotions = new ArrayList(entityPlayer.getActivePotionEffects()); | |
for(PotionEffect potionEffect : activePotions) { | |
entityPlayer.removePotionEffect(potionEffect.getPotionID()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment