Skip to content

Commit

Permalink
(re-add) Remove tweaker duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
simon816 committed May 1, 2019
1 parent d101e75 commit 18cacd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'eclipse'
sourceCompatibility = '1.6'
targetCompatibility = '1.6'

version = '0.6.3'
version = '0.7.0'

repositories {
mavenCentral()
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/simon816/sponge/bootstrap/Bootstrap.java
Expand Up @@ -207,6 +207,11 @@ public static class PostFMLTweaker extends SimpleTweaker {

@Override
public void injectIntoClassLoader(LaunchClassLoader classLoader) {
// Mixin system already loaded early so don't load twice
@SuppressWarnings("unchecked")
List<String> tweakClasses = (List<String>) Launch.blackboard.get("TweakClasses");
while (tweakClasses.remove("org.spongepowered.asm.launch.MixinTweaker")) {
}
// Fix location of jar file
try {
Field fPlugins = CoreModManager.class.getDeclaredField("loadPlugins");
Expand Down

0 comments on commit 18cacd9

Please sign in to comment.