diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java index cbcddcb9f..07d7a0bc1 100644 --- a/src/main/java/net/minestom/server/entity/Entity.java +++ b/src/main/java/net/minestom/server/entity/Entity.java @@ -683,7 +683,7 @@ public class Entity implements Viewable, Tickable, EventHandler, DataContainer, callEvent(EntityTickEvent.class, tickEvent); // reuse tickEvent to avoid recreating it each tick // remove expired effects - { + if (!effects.isEmpty()) { this.effects.removeIf(timedPotion -> { final long potionTime = (long) timedPotion.getPotion().getDuration() * MinecraftServer.TICK_MS; // Remove if the potion should be expired