mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-09-29 23:57:35 +02:00
Fix sponge-api change
This commit is contained in:
parent
921ddcfbc3
commit
2033d91497
@ -122,7 +122,7 @@ public void update() {
|
||||
Optional<List<PotionEffect>> effects = player.get(Keys.POTION_EFFECTS);
|
||||
if (effects.isPresent()) {
|
||||
for (PotionEffect effect : effects.get()) {
|
||||
if (effect.type().equals(PotionEffectTypes.INVISIBILITY.get()) && effect.duration() > 0) invis = true;
|
||||
if (effect.type().equals(PotionEffectTypes.INVISIBILITY.get()) && effect.duration().ticks() > 0) invis = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user