Skip to content

Commit

Permalink
Disable refmaps (finally)
Browse files Browse the repository at this point in the history
Loooooom I hate youuuuuuuuuuuu
  • Loading branch information
EnnuiL committed Jun 25, 2024
1 parent 99cab23 commit 4ba3ea1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ loom {
}
}

// Do not use this at all! It'll get confused by CreativeInventoryScreen's DefaultedList and then crash and burn!
/*
// CreativeInventoryScreen's DefaultedList hates this so much; that's Loom for ya
mixin {
useLegacyMixinAp = false
}
*/
}

// All the dependencies are declared at gradle/libs.version.toml and referenced with "libs.<id>"
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
minecraft = "1.21"
quilt_mappings = "1.21+build.2"

quilt_loom = "1.6.8"
quilt_loom = "1.7.3"
quilt_loader = "0.26.0"

fabric_api = "0.100.2+1.21"
fabric_api = "0.100.3+1.21"

[libraries]
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,23 @@ 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
@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 4ba3ea1

Please sign in to comment.