geforkt von Mirrors/Paper
SPIGOT-1914: Compare PotionEffectType objects using Object#equals(Object) when searching for a custom effect to remove
Dieser Commit ist enthalten in:
Ursprung
87e677ce49
Commit
e43b2780a5
@ -205,7 +205,7 @@ class CraftMetaPotion extends CraftMetaItem implements PotionMeta {
|
||||
Iterator<PotionEffect> iterator = customEffects.iterator();
|
||||
while (iterator.hasNext()) {
|
||||
PotionEffect effect = iterator.next();
|
||||
if (effect.getType() == type) {
|
||||
if (type.equals(effect.getType())) {
|
||||
iterator.remove();
|
||||
changed = true;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren