Skip to content

Commit

Permalink
Ughhhhhhhhhhhhhhhhhhhhhhhhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
EnnuiL committed Oct 8, 2024
1 parent 83bf50f commit 990b354
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ItemStack> instance, Collection<ItemStack> collection, Operation<Boolean> original) {
if (!this.client.interactionManager.isTenfoursized()) {
Expand Down

0 comments on commit 990b354

Please sign in to comment.