From 5d9dddbf5f9784f7aba495bfadf103dfc413a443 Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Wed, 22 Dec 2021 18:25:19 +0200 Subject: Keep bin compat in SyncedGuiDescription --- .../java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (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 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(); -- cgit