mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 06:18:00 +01:00
Workaround for mixin bug
This commit is contained in:
parent
ba47302e51
commit
f3a1c59a77
2 changed files with 28 additions and 1 deletions
|
@ -0,0 +1,27 @@
|
||||||
|
package com.brohoof.minelittlepony.launch;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.spongepowered.asm.mixin.MixinEnvironment;
|
||||||
|
|
||||||
|
import net.minecraft.launchwrapper.ITweaker;
|
||||||
|
import net.minecraft.launchwrapper.LaunchClassLoader;
|
||||||
|
|
||||||
|
public class MineLPTweaker implements ITweaker {
|
||||||
|
|
||||||
|
private static final String CONFIGS[] = { "mixin.hdskins.json", "mixin.minelp.json" };
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void injectIntoClassLoader(LaunchClassLoader classLoader) {
|
||||||
|
for (String config : CONFIGS) {
|
||||||
|
MixinEnvironment.getDefaultEnvironment().addConfiguration(config);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//@formatter:off
|
||||||
|
@Override public void acceptOptions(List<String> args, File gameDir, final File assetsDir, String profile) {}
|
||||||
|
@Override public String getLaunchTarget() { return null; }
|
||||||
|
@Override public String[] getLaunchArguments() { return new String[0]; }
|
||||||
|
//@formatter:on
|
||||||
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"revision": "${revision}",
|
"revision": "${revision}",
|
||||||
"author": "Verdana, Rene_Z, Mumfrey, JoyJoy",
|
"author": "Verdana, Rene_Z, Mumfrey, JoyJoy",
|
||||||
"mixinConfigs": [ "mixin.minelp.json", "mixin.hdskins.json" ],
|
"tweakClass": "com.brohoof.minelittlepony.launch.MineLPTweaker",
|
||||||
"description": "Mine Little Pony turns players and mobs into ponies",
|
"description": "Mine Little Pony turns players and mobs into ponies",
|
||||||
"description.litemodminelittlepony": "Mine Little Pony turns players and mobs into ponies",
|
"description.litemodminelittlepony": "Mine Little Pony turns players and mobs into ponies",
|
||||||
"description.litemodhdskinsmod": "Seperate skin server for Mine Little Pony that also supports HD skins. Access via Skin Manager key binding (default: F1) in the main menu."
|
"description.litemodhdskinsmod": "Seperate skin server for Mine Little Pony that also supports HD skins. Access via Skin Manager key binding (default: F1) in the main menu."
|
||||||
|
|
Loading…
Reference in a new issue