Skip to content

Commit e7438fd

Browse files
committed
PortalESP Updated
1 parent 35fe25c commit e7438fd

3 files changed

Lines changed: 828 additions & 46 deletions

File tree

src/main/java/net/wurstclient/hacks/AutoFlyHack.java

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -231,18 +231,18 @@ public String toString()
231231
"Stop on 2",
232232
"Optional second stop reason. AutoFly stops if either Stop on setting matches.",
233233
StopOnType.values(), StopOnType.OFF);
234-
private final TextFieldSetting stopKeyword2 = new TextFieldSetting(
235-
"Stop keyword 2",
236-
"Keyword to match against the second Stop on type (ignored for portals).",
237-
"");
238-
private final CheckboxSetting disableAutoFlyOnStop = new CheckboxSetting(
239-
"Disable on stop",
240-
"When AutoFly stops due to a Stop on event, fully disable AutoFly (equivalent to .autofly stop) instead of holding position.",
241-
false);
242-
private final CheckboxSetting disableOnPlayers = new CheckboxSetting(
243-
"Disable on players",
244-
"Disable AutoFly entirely if another player entity is detected nearby.",
245-
false);
234+
private final TextFieldSetting stopKeyword2 = new TextFieldSetting(
235+
"Stop keyword 2",
236+
"Keyword to match against the second Stop on type (ignored for portals).",
237+
"");
238+
private final CheckboxSetting disableAutoFlyOnStop = new CheckboxSetting(
239+
"Disable on stop",
240+
"When AutoFly stops due to a Stop on event, fully disable AutoFly (equivalent to .autofly stop) instead of holding position.",
241+
false);
242+
private final CheckboxSetting disableOnPlayers = new CheckboxSetting(
243+
"Disable on players",
244+
"Disable AutoFly entirely if another player entity is detected nearby.",
245+
false);
246246
private final CheckboxSetting disableOnDamage =
247247
new CheckboxSetting("Disable on damage",
248248
"Disable AutoFly entirely when you take damage.", false);
@@ -343,14 +343,14 @@ public AutoFlyHack()
343343
addSetting(allowManualAdjust);
344344
addSetting(disableFlightOnArrival);
345345
addSetting(disableAutoFlyOnArrival);
346-
addSetting(stopOn);
347-
addSetting(stopKeyword);
348-
addSetting(stopOn2);
349-
addSetting(stopKeyword2);
350-
addSetting(disableAutoFlyOnStop);
351-
addSetting(disableOnPlayers);
352-
addSetting(disableOnDamage);
353-
}
346+
addSetting(stopOn);
347+
addSetting(stopKeyword);
348+
addSetting(stopOn2);
349+
addSetting(stopKeyword2);
350+
addSetting(disableAutoFlyOnStop);
351+
addSetting(disableOnPlayers);
352+
addSetting(disableOnDamage);
353+
}
354354

355355
@Override
356356
protected void onEnable()
@@ -1032,24 +1032,24 @@ private void ensureStopBlockCoordinatorConfigured(boolean secondary,
10321032
stopBlockCoordinator = coordinator;
10331033
}
10341034

1035-
private void stopAutoFly(String message)
1036-
{
1037-
// Stop immediately, even if keys were held from the previous tick.
1038-
PathProcessor.releaseControls();
1039-
resetAutoKeyFlags();
1040-
clearMovementKeys();
1041-
1042-
if(disableAutoFlyOnStop.isChecked())
1043-
{
1044-
ChatUtils.message(message + " (AutoFly disabled)");
1045-
setEnabled(false);
1046-
return;
1047-
}
1048-
1049-
ChatUtils.message(message + " (use Next waypoint to continue)");
1050-
stopHold = true;
1051-
stopIgnoreTicks = 0;
1052-
}
1035+
private void stopAutoFly(String message)
1036+
{
1037+
// Stop immediately, even if keys were held from the previous tick.
1038+
PathProcessor.releaseControls();
1039+
resetAutoKeyFlags();
1040+
clearMovementKeys();
1041+
1042+
if(disableAutoFlyOnStop.isChecked())
1043+
{
1044+
ChatUtils.message(message + " (AutoFly disabled)");
1045+
setEnabled(false);
1046+
return;
1047+
}
1048+
1049+
ChatUtils.message(message + " (use Next waypoint to continue)");
1050+
stopHold = true;
1051+
stopIgnoreTicks = 0;
1052+
}
10531053

10541054
private String getStopKeyword(TextFieldSetting setting)
10551055
{

0 commit comments

Comments
 (0)