fix inconsistency
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m21s

This commit is contained in:
Daniella / Tove 2024-06-17 08:27:56 +02:00
parent f07f47f3d0
commit b386c0c710

View file

@ -24,7 +24,7 @@ public class AntiLevitation extends Feature {
@Override
public void onTick() {
meta = mode.name();
if(mc.player.isPotionActive(MobEffects.LEVITATION) && mode == Mode.Effect) {
if(mode == Mode.Effect && mc.player.isPotionActive(MobEffects.LEVITATION)) {
mc.player.getActivePotionMap().remove(MobEffects.LEVITATION);
}
}