Skip to content

Commit

Permalink
Ensure Food Plus mixin is only applied when config is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Jan 15, 2023
1 parent 40daa6b commit 1dac308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/embeddedt/archaicfix/asm/Mixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public enum Mixin implements IMixin {

common_am2_MixinPlayerTracker(Side.COMMON, require(TargetedMod.AM2), "am2.MixinPlayerTracker"),

common_foodplus_MixinUpdater(Side.COMMON, require(TargetedMod.FOODPLUS), "foodplus.MixinUpdater")
common_foodplus_MixinUpdater(Side.COMMON, require(TargetedMod.FOODPLUS).and(m -> ArchaicConfig.disableFoodPlusUpdates), "foodplus.MixinUpdater")

// The modFilter argument is a predicate, so you can also use the .and(), .or(), and .negate() methods to mix and match multiple predicates.
;
Expand Down

0 comments on commit 1dac308

Please sign in to comment.