From 990b354a9b9f5919aca44b78c7a81d8eeb4103da Mon Sep 17 00:00:00 2001 From: Ennui Langeweile <85590273+EnnuiL@users.noreply.github.com> Date: Tue, 8 Oct 2024 17:20:34 -0300 Subject: [PATCH] Ughhhhhhhhhhhhhhhhhhhhhhhhhh --- .../creative/CreativeInventoryScreenMixin.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/ennuil/ennuis_bigger_inventories/mixin/core/client/creative/CreativeInventoryScreenMixin.java b/src/main/java/io/github/ennuil/ennuis_bigger_inventories/mixin/core/client/creative/CreativeInventoryScreenMixin.java index 898cb92..781e46a 100644 --- a/src/main/java/io/github/ennuil/ennuis_bigger_inventories/mixin/core/client/creative/CreativeInventoryScreenMixin.java +++ b/src/main/java/io/github/ennuil/ennuis_bigger_inventories/mixin/core/client/creative/CreativeInventoryScreenMixin.java @@ -293,9 +293,24 @@ private void modifyTabTexture(GuiGraphics graphics, Identifier texture, int x, i } // The section where Saved Hotbars are saved + // This is also the part where Loom is being a massive pain in the arse with the refmapless mode + // Ignore this error!!! @WrapOperation( method = "setSelectedTab", - at = @At(value = "INVOKE", target = "Lnet/minecraft/util/collection/DefaultedList;addAll(Ljava/util/Collection;)Z", ordinal = 0) + at = { + @At( + value = "INVOKE", + target = "Lnet/minecraft/class_2371;addAll(Ljava/util/Collection;)Z", + ordinal = 0, + remap = false + ), + @At( + value = "INVOKE", + target = "Lnet/minecraft/util/collection/DefaultedList;addAll(Ljava/util/Collection;)Z", + ordinal = 0 + ) + }, + allow = 1 ) private boolean addHotbarContentsPartially(DefaultedList instance, Collection collection, Operation original) { if (!this.client.interactionManager.isTenfoursized()) {