Skip to content

Commit

Permalink
fix: also disable LoomScreenMixin
Browse files Browse the repository at this point in the history
I somehow forgot this class in the previous commit.
  • Loading branch information
RubixDev committed Feb 1, 2024
1 parent 974e338 commit 3c3edb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/rubixdev/rug/mixins/LoomScreenMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import org.spongepowered.asm.mixin.injection.Constant;
import org.spongepowered.asm.mixin.injection.ModifyConstant;

@Mixin(LoomScreen.class)
@Mixin(value = LoomScreen.class, priority = 990)
public class LoomScreenMixin {
@ModifyConstant(method = "onInventoryChanged", constant = @Constant(intValue = 6))
@ModifyConstant(method = "onInventoryChanged", constant = @Constant(intValue = 6), require = 0)
private int overwriteMaxLayers(final int original) {
return RugSettings.maxBannerLayers;
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/de/rubixdev/rug/util/MixinConfigPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
List<String> bannerLayersMixins = Lists.newArrayList(
"de.rubixdev.rug.mixins.BannerDuplicateRecipeMixin",
"de.rubixdev.rug.mixins.BannerItemMixin",
"de.rubixdev.rug.mixins.LoomScreenMixin",
"de.rubixdev.rug.mixins.LoomScreenHandlerMixin");

if (reachDistanceMixins.contains(mixinClassName)) {
Expand Down

0 comments on commit 3c3edb4

Please sign in to comment.