if (!contains(type)) {
return;
}
// send the update
player.getNetwork().callProtocolEvent(new EntityRemoveEffectEvent(player, type));
// look up the effect with this type and remove it
Iterator<EntityEffect> i = effects.iterator();
while (i.hasNext()) {
if (i.next().getType() == type) {