Skip to content

Commit

Permalink
Add Carry On patch
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Sep 15, 2024
1 parent 3d0b1f4 commit af2780c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ If you are still using 0.1.0 Cleanroom, use 0.5.4. But that's not recommended.
* Ears
* Colytra
* Crossbow
* Polyfrost mods
* Polyfrost mods
* Carry On

## Note
Add + to start of the file if it's not there.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ dependencies {
//InfinityLib
compileOnly(fg.deobf("curse.maven:inflib-251396:3317119"))

//Carry on
compileOnly(fg.deobf("curse.maven:carry-274259:4507139"))


implementation("com.cleanroommc:groovyscript:1.1.1") {
transitive = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
case "refinedstorage" -> Loader.isModLoaded("refinedstorage") && FugueConfig.modPatchConfig.enableMoreRefinedStorage && Fugue.isModNewerThan("refinedstorage", "2.0.0");
case "jei" -> Loader.isModLoaded("jei") && FugueConfig.modPatchConfig.enableHEI && Fugue.isModNewerThan("jei", "4.17.0");
case "infinitylib" -> Loader.isModLoaded("infinitylib") && FugueConfig.modPatchConfig.enableInfLib;
case "carryon" -> Loader.isModLoaded("carryon") && FugueConfig.modPatchConfig.enableCarryon;
default -> true;
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,6 @@ public class ModPatchConfig {
public boolean enablePolyForst = true;
@Config.Name("Enable Dropt Patch")
public boolean enableDropt = true;
@Config.Name("Enable Carryon Patch")
public boolean enableCarryon = true;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.cleanroommc.fugue.mixin.carryon;

import com.google.common.base.CharMatcher;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
import tschipp.carryon.common.item.ItemTile;

@Mixin(ItemTile.class)
public class ItemTileMixin {
@Redirect(method = "onItemUse", at = @At(value = "FIELD", target = "Lcom/google/common/base/CharMatcher;JAVA_UPPER_CASE:Lcom/google/common/base/CharMatcher;"))
private CharMatcher getCharMatcher() {
return CharMatcher.javaUpperCase();
}
}
1 change: 1 addition & 0 deletions src/main/resources/fugue.mixin.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"armourers_workshop.GlobalTaskMixin",
"armourers_workshop.SkinTextureMixin",
"astralsorcery.PerkAttributeTypeMixin",
"carryon.ItemTileMixin",
"charset.ColorspacesMixin",
"codechickenlib.ReflectionManagerMixin",
"customnpcs.ScriptPlayerEventHandlerMixin",
Expand Down

0 comments on commit af2780c

Please sign in to comment.