aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java2
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java4
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java4
3 files changed, 3 insertions, 7 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java b/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java
index b56c9f8..15917ff 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java
@@ -134,7 +134,7 @@ public class SyncedGuiDescription extends ScreenHandler implements GuiDescriptio
}
@Override
- public ItemStack transferSlot(PlayerEntity player, int index) {
+ public ItemStack quickMove(PlayerEntity player, int index) {
ItemStack result = ItemStack.EMPTY;
Slot slot = slots.get(index);
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java
index 4053360..524e73d 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java
@@ -62,8 +62,7 @@ public class CottonClientScreen extends Screen implements CottonScreenImpl {
@Override
public void init() {
super.init();
- client.keyboard.setRepeatEvents(true);
-
+
WPanel root = description.getRootPanel();
if (root != null) root.addPainters();
description.addPainters();
@@ -73,7 +72,6 @@ public class CottonClientScreen extends Screen implements CottonScreenImpl {
@Override
public void removed() {
super.removed();
- this.client.keyboard.setRepeatEvents(false);
VisualLogger.reset();
}
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java
index 74fec98..6406619 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java
@@ -96,8 +96,7 @@ public class CottonInventoryScreen<T extends SyncedGuiDescription> extends Handl
@Override
public void init() {
super.init();
- client.keyboard.setRepeatEvents(true);
-
+
WPanel root = description.getRootPanel();
if (root != null) root.addPainters();
description.addPainters();
@@ -108,7 +107,6 @@ public class CottonInventoryScreen<T extends SyncedGuiDescription> extends Handl
@Override
public void removed() {
super.removed();
- this.client.keyboard.setRepeatEvents(false);
VisualLogger.reset();
}