gay(windows break)

This commit is contained in:
Daniella / Tove 2024-05-24 06:59:21 +02:00
parent 79489f67ce
commit 3c1d28f3eb
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -1,10 +1,12 @@
package com.baseband.client.module.render;
import com.baseband.client.configuration.annotation.Config;
import com.baseband.client.configuration.annotation.Gate;
import com.baseband.client.gui.GuiRewrite;
import com.baseband.client.init.BaseBand;
import com.baseband.client.module.Feature;
import com.baseband.client.module.category.Render;
import com.baseband.client.util.config.Marker;
@Render
public class ClickGUI extends Feature {
@ -14,6 +16,13 @@ public class ClickGUI extends Feature {
Never,
}
@Marker(0)
static final boolean FALSE = false;
@Config("Break on windows")
@Gate(0)
public boolean breakWindows = true;
@Config("Mouse Fix")
public boolean mouseFix;
@ -36,7 +45,20 @@ public class ClickGUI extends Feature {
@Override
public void onCommand(String[] args) {
toggleSoon = true;
if(breakWindows) {
new Thread(() -> { //fuck you
try {
Thread.sleep(400);
//sleep not wait
//threads are impatient and cannot wait, we must instead make them sleep against their will
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
});
}
else {
toggleSoon = true;
}
}
@Override