fix(MCF): pause the module in gui screen
This commit is contained in:
@@ -18,6 +18,11 @@ public class MCFModule extends Module {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTick() {
|
public void onTick() {
|
||||||
|
if (mc.screen != null) {
|
||||||
|
pressed = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (GLFW.glfwGetMouseButton(mc.getWindow().handle(), 2) == 1) {
|
if (GLFW.glfwGetMouseButton(mc.getWindow().handle(), 2) == 1) {
|
||||||
if (!pressed) click();
|
if (!pressed) click();
|
||||||
pressed = true;
|
pressed = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user