Skip to content

Commit ddb683c

Browse files
committed
Update 1.3.0
1 parent 7301954 commit ddb683c

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

common/build.gradle

+4-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ dependencies {
1111
api 'org.ow2.asm:asm-util:9.7'
1212
api 'org.ow2.asm:asm-commons:9.7'
1313
api 'org.semver4j:semver4j:5.3.0'
14-
// api 'org.spongepowered:mixin:0.8.5'
15-
api 'net.fabricmc:sponge-mixin:0.13.4+mixin.0.8.5' // <- https://maven.fabricmc.net/net/fabricmc/sponge-mixin/
16-
api 'io.github.llamalad7:mixinextras-common:0.3.6' // <- https://github.com/LlamaLad7/MixinExtras/releases
17-
api 'com.github.bawnorton.mixinsquared:mixinsquared-common:0.1.2-beta.6' // <- https://github.com/Bawnorton/MixinSquared/releases
18-
api 'it.unimi.dsi:fastutil-core:8.5.13'
14+
api 'net.fabricmc:sponge-mixin:0.15.0+mixin.0.8.7' // <- https://maven.fabricmc.net/net/fabricmc/sponge-mixin/
15+
api 'io.github.llamalad7:mixinextras-common:0.4.0' // <- https://github.com/LlamaLad7/MixinExtras/releases
16+
api 'com.github.bawnorton.mixinsquared:mixinsquared-common:0.2.0-beta.6' // <- https://github.com/Bawnorton/MixinSquared/releases
17+
api 'it.unimi.dsi:fastutil-core:8.5.14'
1918

2019
// Mixin dependencies
2120
api 'com.google.code.gson:gson:2.10.1'

common/src/main/java/com/fox2code/foxloader/launcher/DependencyHelper.java

+5-6
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@ GSON_DEPENDENCY, new Dependency("com.google.guava:guava:21.0", MAVEN_CENTRAL, "c
3838
new Dependency("org.semver4j:semver4j:5.3.0", MAVEN_CENTRAL, "org.semver4j.Semver"),
3939
new Dependency("org.apache.commons:commons-lang3:3.3.2", MAVEN_CENTRAL, "org.apache.commons.lang3.tuple.Pair"),
4040
new Dependency("org.luaj:luaj-jse:3.0.1", MAVEN_CENTRAL, "org.luaj.vm2.Globals"),
41-
new Dependency("it.unimi.dsi:fastutil-core:8.5.13", MAVEN_CENTRAL, "it.unimi.dsi.fastutil.Pair"),
41+
new Dependency("it.unimi.dsi:fastutil-core:8.5.14", MAVEN_CENTRAL, "it.unimi.dsi.fastutil.Pair"),
4242
// new Dependency("org.spongepowered:mixin:0.8.5", SPONGE_POWERED, "org.spongepowered.asm.mixin.Mixins"),
43-
new Dependency("net.fabricmc:sponge-mixin:0.13.4+mixin.0.8.5", FABRIC_MC, "org.spongepowered.asm.mixin.Mixins"),
44-
new Dependency("io.github.llamalad7:mixinextras-common:0.3.6",
43+
new Dependency("net.fabricmc:sponge-mixin:0.15.0+mixin.0.8.7", FABRIC_MC, "org.spongepowered.asm.mixin.Mixins"),
44+
new Dependency("io.github.llamalad7:mixinextras-common:0.4.0",
4545
MAVEN_CENTRAL, "com.llamalad7.mixinextras.MixinExtrasBootstrap"),
46-
new Dependency("com.github.bawnorton.mixinsquared:mixinsquared-common:0.1.2-beta.6",
47-
JITPACK, "com.bawnorton.mixinsquared.MixinSquaredBootstrap",
48-
"https://github.com/Bawnorton/MixinSquared/releases/download/0.1.2-beta.6/mixinsquared-common-0.1.2-beta.6.jar"),
46+
new Dependency("com.github.bawnorton.mixinsquared:mixinsquared-common:0.2.0-beta.6",
47+
FOX2CODE, "com.bawnorton.mixinsquared.MixinSquaredBootstrap"),
4948
jFallback, // jFallback have special handling in dev plugin
5049
};
5150

common/src/main/java/com/fox2code/foxloader/loader/mixin/MixinService.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,23 @@ public Class<?> findAgentClass(String name, boolean initialize) throws ClassNotF
111111

112112
@Override
113113
public ClassNode getClassNode(String name) throws ClassNotFoundException, IOException {
114-
return this.getClassNode(name, false);
114+
return this.getClassNode(name, false, 0);
115115
}
116116

117117
@Override
118118
public ClassNode getClassNode(String name, boolean runTransformers) throws ClassNotFoundException, IOException {
119+
return this.getClassNode(name, runTransformers, 0);
120+
}
121+
122+
@Override
123+
public ClassNode getClassNode(String name, boolean runTransformers, int readerFlags) throws ClassNotFoundException, IOException {
119124
ClassNode classNode = new ClassNode();
120125
InputStream is = FoxLauncher.getFoxClassLoader().getResourceAsStream(name.replace('.', '/') + ".class");
121126
if (is == null) {
122127
System.err.println("Failed to find class \"" + name + "\" for mixin");
123128
throw new ClassNotFoundException(name);
124129
}
125-
new ClassReader(is).accept(classNode, 0);
130+
new ClassReader(is).accept(classNode, readerFlags);
126131
// Always apply PreLoader
127132
PreLoader.patchForMixin(classNode, name);
128133
return classNode;

common/src/main/java/com/fox2code/foxloader/loader/packet/ServerHello.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
public final class ServerHello extends FoxPacket {
1515
/**
1616
* <p>The current version of the Server Hello packet.</p>
17-
* <b>V0</b> - <i>Block and Item registry entries and metadata</i>.<br/>
17+
* <b>V0</b> - <i>Block and Item registry entries and metadata</i>.<br>
1818
* <b>V1</b> - <i>Entity type registry metadata appended to the end</i>.
1919
*/
2020
public static final short SERVER_HELLO_VERSION = 1;

0 commit comments

Comments
 (0)