This commit is contained in:
Jess 2023-10-05 07:29:13 +01:00
parent 5ccebb7194
commit dce3487675
3 changed files with 41 additions and 1 deletions

2
.gitignore vendored
View file

@ -3,7 +3,7 @@
/build/ /build/
/obf/ /obf/
/Obf/ /Obf/
/new-obf/
.classpath .classpath
.project .project
.settings/ .settings/

View file

@ -0,0 +1,38 @@
/*
* Copyright (c) 2023 Jess H & Daniella H. All Rights Reserved.
*
* Unauthorized copying of this file via any medium is Strictly Prohibited.
*/
package com.baseband.client;
//JessSystemV
//7:28 AM, 2023-10-05
//God fucking help me
/*
ASyncRunner aSyncRunner = new ASyncRunner(() -> {
//Do big complicated thing that we can't have on tick methods *or* render methods
//Fill CopyOnWriteArrayList with Valid Holes grabbed from world for example
//but this would be instantiated in the class not method
});
@Subscribe
public void tick(SafeTickEvent e) {
aSyncRunner.run(); //run this on every tick
}
*/
public class ASyncRunner {
private final Thread thread;
public ASyncRunner(Runnable runnable) {
this.thread = new Thread(runnable);
}
public void run() {
if(!thread.isAlive()) {
thread.start();
}
}
}

View file

@ -31,6 +31,8 @@ public class Utils {
} }
public static void check() { public static void check() {
//Check if user is banned //Check if user is banned
String[] strings = new String[]{ String[] strings = new String[]{