Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit f50deaa

Browse files
author
Kiriyaga W
committed
refactor: AutoXP, removed bloat setting, it disables if player if FallFlying so we dont waste xp
1 parent 508ab3f commit f50deaa

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

  • nami-client/src/main/java/namidevelopment/kiriyaga/nami/impl/feature/combat

nami-client/src/main/java/namidevelopment/kiriyaga/nami/impl/feature/combat/AutoXPFeature.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ public enum SwapMode {NORMAL, SILENT }
3636
public final BoolSetting rotate = addSetting(new BoolSetting("Rotate", false));
3737
public final BoolSetting packet = addSetting(new BoolSetting("Packet", false));
3838
public final IntSetting packetShift = addSetting(new IntSetting("ShiftTicks", 2, 1, 6));
39-
public final BoolSetting whenNoTarget = addSetting(new BoolSetting("NoTarget", false));
40-
public final BoolSetting onlyPhased = addSetting(new BoolSetting("OnlyPhased", false));
4139
public final BoolSetting selfToggle = addSetting(new BoolSetting("SelfToggle", true));
4240
public final EnumSetting<SwapMode> swapMode = addSetting(new EnumSetting<>("Swap", SwapMode.SILENT));
4341
public final BoolSetting is1_12 = addSetting(new BoolSetting("1.12", false));
@@ -57,19 +55,12 @@ private void onPreTickEvent(PreTickEvent ev) {
5755
return;
5856
}
5957

60-
if (whenNoTarget.get() && TargetUtils.getTarget() != null) {
58+
if (MC.player.isFallFlying()) {
6159
if (selfToggle.get())
6260
toggle();
6361
return;
6462
}
6563

66-
if (onlyPhased.get() && !isPhased(MC.player)) {
67-
if (selfToggle.get())
68-
toggle();
69-
70-
return;
71-
}
72-
7364
int xpSlot = getSlotInHotbar(Items.EXPERIENCE_BOTTLE);
7465
if (xpSlot == -1) {
7566
if (selfToggle.get())
@@ -97,8 +88,6 @@ private void onPreTickEvent(PreTickEvent ev) {
9788
if (!ROTATION_SERVICE.getRequestHandler().isCompleted(this.name)) return;
9889
}
9990

100-
int prevSlot = MC.player.getInventory().getSelectedSlot();
101-
10291
switch (swapMode.get()) {
10392
case NORMAL -> {
10493
INVENTORY_SERVICE.getSwapHandler().attemptSwitch(xpSlot, false);

0 commit comments

Comments
 (0)