aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2021-12-22 18:25:19 +0200
committerJuuz <6596629+Juuxel@users.noreply.github.com>2021-12-22 18:25:19 +0200
commit5d9dddbf5f9784f7aba495bfadf103dfc413a443 (patch)
tree73d3efd680ca842b9c677f490cb907b70264f0d4 /src
parentbbbd874a67489488f5e969633b2ca01881f4164b (diff)
downloadLibGui-5d9dddbf5f9784f7aba495bfadf103dfc413a443.tar.gz
LibGui-5d9dddbf5f9784f7aba495bfadf103dfc413a443.tar.bz2
LibGui-5d9dddbf5f9784f7aba495bfadf103dfc413a443.zip
Keep bin compat in SyncedGuiDescription
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java8
1 files changed, 7 insertions, 1 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 f97842d..b56c9f8 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java
@@ -167,7 +167,13 @@ public class SyncedGuiDescription extends ScreenHandler implements GuiDescriptio
return result;
}
-
+
+ // This is only kept for backwards binary compat, TODO: Remove in 1.19
+ @Override
+ public void onSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player) {
+ super.onSlotClick(slotIndex, button, actionType, player);
+ }
+
/** WILL MODIFY toInsert! Returns true if anything was inserted. */
private boolean insertIntoExisting(ItemStack toInsert, Slot slot, PlayerEntity player) {
ItemStack curSlotStack = slot.getStack();