Skip to content

Commit 18cacd9

Browse files
committed
(re-add) Remove tweaker duplicates
1 parent d101e75 commit 18cacd9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'eclipse'
44
sourceCompatibility = '1.6'
55
targetCompatibility = '1.6'
66

7-
version = '0.6.3'
7+
version = '0.7.0'
88

99
repositories {
1010
mavenCentral()

src/main/java/com/simon816/sponge/bootstrap/Bootstrap.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@ public static class PostFMLTweaker extends SimpleTweaker {
207207

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

0 commit comments

Comments
 (0)