Skip to content

Commit

Permalink
Patch MoreRefinedStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Jun 6, 2024
1 parent 07d60dc commit 9eda518
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ dependencies {
//In Control!
compileOnly(fg.deobf("curse.maven:incontrol-257356:3101719"))

//MoreRefinedStorage
compileOnly(fg.deobf("curse.maven:mrs-631058:3818846"))

implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.9.24'

// Mixin and it's common libraries
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mappings_version=39-1.12
mod_id=fugue
mod_name=Fugue
mod_main_class=Fugue
mod_version=0.15.2
mod_version=0.15.3
mod_base_package=com.cleanroommc.fugue
mod_authors=kappa_maintainer
mod_description=A mod that patch dead mods for Cleanroom
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
case "mage" -> Loader.isModLoaded("mage") && FugueConfig.modPatchConfig.enableMage;
case "extrautils2" -> Loader.isModLoaded("extrautils2") && FugueConfig.modPatchConfig.enableExtraUtilities;
case "incontrol" -> Loader.isModLoaded("incontrol") && FugueConfig.modPatchConfig.enableInControl;
case "refinedstorage" -> Loader.isModLoaded("refinedstorage") && FugueConfig.modPatchConfig.enableMoreRefinedStorage && Fugue.isModNewerThan("refinedstorage", "2.0.0");
default -> true;
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,6 @@ public class ModPatchConfig {
public boolean enableExtraUtilities = true;
@Config.Name("Enable In Control! Patch")
public boolean enableInControl = true;
@Config.Name("Enable More Refined Storage Patch")
public boolean enableMoreRefinedStorage = true;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.cleanroommc.fugue.mixin.refinedstorage;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyArg;

@Mixin(targets = "com.raoulvdberge.refinedstorage.apiimpl.network.NetworkNodeGraph$Operator")
public class OperatorMixin {
@ModifyArg(method = "<init>", at = @At(value = "INVOKE", target = "Lit/unimi/dsi/fastutil/objects/ObjectOpenHashSet;<init>(IF)V"), index = 1)
private float modify1(float old) {
return 0.75F;
}
}
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 @@ -23,6 +23,7 @@
"minecraftmultipartcbe.ASMMixinCompilerMixin",
"minecraftmultipartcbe.StackAnalyserMixin",
"projectred_core.WirePropagatorMixin",
"refinedstorage.OperatorMixin",
"solarflux.INetworkSFMixin",
"solarflux.SolarFluxMixin",
"subaquatic.IBubbleColumnMixin",
Expand Down

0 comments on commit 9eda518

Please sign in to comment.