aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2022-12-11 14:12:49 +0200
committerJuuz <6596629+Juuxel@users.noreply.github.com>2022-12-11 14:12:49 +0200
commite0bcfebef37e727ccea046138b6c633c57056d96 (patch)
tree5e0b70af68bb073ce54dee874f0b72121aa6e92f /src/main/java
parent2aa6d47f648274137cd346115245c28a11ff1723 (diff)
downloadLibGui-e0bcfebef37e727ccea046138b6c633c57056d96.tar.gz
LibGui-e0bcfebef37e727ccea046138b6c633c57056d96.tar.bz2
LibGui-e0bcfebef37e727ccea046138b6c633c57056d96.zip
Update to Minecraft 1.19.3, part 2
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();
}