File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/java/meteordevelopment/meteorclient/systems/modules/combat Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ public class AutoEXP extends Module {
3939 .build ()
4040 );
4141
42+ private final Setting <Boolean > onlyGround = sgGeneral .add (new BoolSetting .Builder ()
43+ .name ("only-on-ground" )
44+ .description ("Only throw when the player is on the ground." )
45+ .defaultValue (false )
46+ .build ()
47+ );
48+
4249 private final Setting <Integer > slot = sgGeneral .add (new IntSetting .Builder ()
4350 .name ("exp-slot" )
4451 .description ("The slot to replenish exp into." )
@@ -80,6 +87,10 @@ public void onActivate() {
8087
8188 @ EventHandler
8289 private void onTick (TickEvent .Pre event ) {
90+ if (onlyGround .get () && !mc .player .isOnGround ()) {
91+ return ;
92+ }
93+
8394 if (repairingI == -1 ) {
8495 if (mode .get () != Mode .Hands ) {
8596 for (EquipmentSlot slot : AttributeModifierSlot .ARMOR ) {
You can’t perform that action at this time.
0 commit comments