From e0bcfebef37e727ccea046138b6c633c57056d96 Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Sun, 11 Dec 2022 14:12:49 +0200 Subject: Update to Minecraft 1.19.3, part 2 --- src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java | 2 +- .../java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java | 4 +--- .../io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'src/main') 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 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 extends Handl @Override public void removed() { super.removed(); - this.client.keyboard.setRepeatEvents(false); VisualLogger.reset(); } -- cgit