mirror of
https://github.com/AutismDevelopment/Autism-Client.git
synced 2026-10-28 19:39:48 +00:00
Refactor: extract MacroClientThread from MacroExecutor (upstream #4)
Move 8 client-thread/tick dispatch methods plus the TICK_ALIGNED queue verbatim into MacroClientThread. drainTickAligned kept as public delegate for the mixin caller; run/call variants re-pointed across all helpers. All bodies verified identical against HEAD modulo mechanical MacroExecutor./MacroClientThread. qualification.
This commit is contained in:
parent
79c1e81cc6
commit
61938e7774
8 changed files with 273 additions and 255 deletions
|
|
@ -16,7 +16,7 @@ final class MacroDurability {
|
|||
AtomicReference<DurabilityUseNextSession> sessionRef = new AtomicReference<>();
|
||||
long start = System.currentTimeMillis();
|
||||
while (MacroExecutor.isCurrentRunActive()) {
|
||||
if (Boolean.TRUE.equals(MacroExecutor.callOnClientThread(mc, () -> tickDurabilityUseNext(mc, action, sessionRef), Boolean.FALSE))) {
|
||||
if (Boolean.TRUE.equals(MacroClientThread.callOnClientThread(mc, () -> tickDurabilityUseNext(mc, action, sessionRef), Boolean.FALSE))) {
|
||||
return;
|
||||
}
|
||||
if (action.timeoutMs > 0 && System.currentTimeMillis() - start >= action.timeoutMs) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue