Skip to content

Commit

Permalink
Fix logisticspipes patch
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Aug 25, 2024
1 parent f3b8b68 commit 8c6021c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
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.16.0
mod_version=0.16.1
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 @@ -82,6 +82,7 @@ public class FugueLoadingPlugin implements IFMLLoadingPlugin {
TransformerDelegate.registerExplicitTransformerByInstance(new LoadClassTransformer(),
"network.rs485.debug.OpenGLDebugger",
"logisticspipes.utils.StaticResolverUtil");
TransformerDelegate.registerExplicitTransformerByInstance(new LogisticsPipesTrigger(), "logisticspipes.asm.LogisticsPipesCoreLoader");
}
if (FugueConfig.modPatchConfig.enableEC){
TransformerDelegate.registerExplicitTransformerByInstance(new EnumInputClassTransformer(), "austeretony.enchcontrol.common.core.EnumInputClass");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.cleanroommc.fugue.transformer.logisticpipes;

import net.minecraft.launchwrapper.Launch;
import top.outlands.foundation.IExplicitTransformer;

public class LogisticsPipesTrigger implements IExplicitTransformer {
@Override
public byte[] transform(byte[] bytes) {
try {
Launch.classLoader.findClass("logisticspipes.network.packets.routingdebug.RoutingUpdateUntrace");
Launch.classLoader.findClass("logisticspipes.network.packets.modules.SupplierPipeMode");
Launch.classLoader.findClass("logisticspipes.network.packets.pipe.FluidSupplierMinMode");
Launch.classLoader.findClass("logisticspipes.network.abstractguis.ModuleCoordinatesGuiProvider");
Launch.classLoader.findClass("logisticspipes.network.guis.upgrade.SneakyUpgradeConfigGuiProvider");
} catch (ClassNotFoundException ignored) {}
return bytes;
}
}

0 comments on commit 8c6021c

Please sign in to comment.