aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/CottonScreenController.java1
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/ClientCottonScreen.java1
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/CottonScreen.java1
3 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/CottonScreenController.java b/src/main/java/io/github/cottonmc/cotton/gui/CottonScreenController.java
index a063424..4710d5b 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/CottonScreenController.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/CottonScreenController.java
@@ -292,7 +292,6 @@ public class CottonScreenController extends CraftingContainer<Inventory> impleme
}
public void doClick(int x, int y, int button) {
- System.out.println("Doing click");
if (focus!=null) {
int wx = focus.getAbsoluteX();
int wy = focus.getAbsoluteY();
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/ClientCottonScreen.java b/src/main/java/io/github/cottonmc/cotton/gui/client/ClientCottonScreen.java
index d6b32c2..f19cce7 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/ClientCottonScreen.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/ClientCottonScreen.java
@@ -154,6 +154,7 @@ public class ClientCottonScreen extends Screen {
@Override
public boolean keyPressed(int ch, int keyCode, int modifiers) {
+ if (super.keyPressed(ch, keyCode, modifiers)) return true;
if (description.getFocus()==null) return false;
description.getFocus().onKeyPressed(ch, keyCode, modifiers);
return true;
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonScreen.java b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonScreen.java
index 9f7e374..390b715 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonScreen.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonScreen.java
@@ -81,6 +81,7 @@ public class CottonScreen<T extends CottonScreenController> extends AbstractCont
@Override
public boolean keyPressed(int ch, int keyCode, int modifiers) {
+ if (super.keyPressed(ch, keyCode, modifiers)) return true;
if (container.getFocus()==null) return false;
container.getFocus().onKeyPressed(ch, keyCode, modifiers);
return true;