Skip to content

Commit 2ed1c97

Browse files
committed
fix: wrong method on legacy platform
1 parent 59d67fd commit 2ed1c97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/combat/PortalGodMode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private ConfirmTimeout(PortalGodMode module, User user, int teleportId) {
6161
}
6262

6363
@Override
64-
public void accept(ScheduledTask task) {
64+
public void accept(ScheduledTask scheduledTask) {
6565
if (user == null) return;
6666

6767
if (module.log) {

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/combat/PortalGodMode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private ConfirmTimeout(PortalGodMode module, User user, int teleportId) {
5858
this.module = module;
5959
this.user = user;
6060
this.teleportId = teleportId;
61-
this.task = module.executorService.scheduleWithFixedDelay(this, module.timeoutMillis, 0L, TimeUnit.MILLISECONDS);
61+
this.task = module.executorService.schedule(this, module.timeoutMillis, TimeUnit.MILLISECONDS);
6262
}
6363

6464
@Override

0 commit comments

Comments
 (0)