We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 921ddcf commit 2033d91Copy full SHA for 2033d91
implementations/sponge-8.0.0/src/main/java/de/bluecolored/bluemap/sponge8/SpongePlayer.java
@@ -122,7 +122,7 @@ public void update() {
122
Optional<List<PotionEffect>> effects = player.get(Keys.POTION_EFFECTS);
123
if (effects.isPresent()) {
124
for (PotionEffect effect : effects.get()) {
125
- 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;
126
}
127
128
0 commit comments