gay(windows break)
This commit is contained in:
parent
79489f67ce
commit
3c1d28f3eb
1 changed files with 23 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue