Skip to content

Commit

Permalink
suggested change
Browse files Browse the repository at this point in the history
  • Loading branch information
jtris committed Jun 12, 2024
1 parent 28934a1 commit ce98013
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@ public ElytraFly() {

@Override
public void onActivate() {
currentMode.onActivate();
if ((chestSwap.get() == ChestSwapMode.Always || chestSwap.get() == ChestSwapMode.WaitForGround)
&& mc.player.getEquippedStack(EquipmentSlot.CHEST).getItem() != Items.ELYTRA) {
&& mc.player.getEquippedStack(EquipmentSlot.CHEST).getItem() != Items.ELYTRA && isActive()) {
Modules.get().get(ChestSwap.class).swap();
}
currentMode.onActivate();
}

@Override
Expand Down

0 comments on commit ce98013

Please sign in to comment.