Skip to content

Commit 1481278

Browse files
committed
Update 1.2.36
1 parent 68abf37 commit 1481278

File tree

5 files changed

+29
-3
lines changed

5 files changed

+29
-3
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.fox2code.foxloader.client.mixins;
2+
3+
import net.minecraft.src.client.renderer.block.TexturePackCustom;
4+
import org.spongepowered.asm.mixin.Mixin;
5+
import org.spongepowered.asm.mixin.Unique;
6+
import org.spongepowered.asm.mixin.injection.At;
7+
import org.spongepowered.asm.mixin.injection.Inject;
8+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
9+
10+
@Mixin(TexturePackCustom.class)
11+
public class MixinTexturePackCustom {
12+
@Unique private Boolean compatibilityStatus;
13+
14+
@Inject(method = "isCompatible", at = @At("HEAD"), cancellable = true)
15+
public void hotfix_isCompatibleHead(CallbackInfoReturnable<Boolean> cir) {
16+
if (this.compatibilityStatus != null) {
17+
cir.setReturnValue(this.compatibilityStatus);
18+
}
19+
}
20+
21+
@Inject(method = "isCompatible", at = @At("RETURN"))
22+
public void hotfix_isCompatibleReturn(CallbackInfoReturnable<Boolean> cir) {
23+
this.compatibilityStatus = cir.getReturnValue();
24+
}
25+
}

client/src/main/resources/foxloader.client.mixins.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"MixinRenderEngine",
4141
"MixinStringTranslate",
4242
"MixinTextureMap",
43+
"MixinTexturePackCustom",
4344
"MixinTileEntity",
4445
"MixinWorld"
4546
]

common/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies {
3232
}
3333

3434
// Do not expose JFallback API to mods
35-
implementation("com.fox2code:JFallback:0.0.1")
35+
implementation("com.fox2code:JFallback:0.0.2")
3636

3737
// Do no expose spark APIs to mods
3838
implementation(project['spark.dependency'] as String)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class DependencyHelper {
2727

2828
// Extra dependencies not included in ReIndev
2929
public static final Dependency jFallback =
30-
new Dependency("com.fox2code:JFallback:0.0.1", FOX2CODE, "com.fox2code.jfallback.JFallbackClassVisitor");
30+
new Dependency("com.fox2code:JFallback:0.0.2", FOX2CODE, "com.fox2code.jfallback.JFallbackClassVisitor");
3131

3232
public static final Dependency[] commonDependencies = new Dependency[]{
3333
new Dependency("org.ow2.asm:asm:9.6", MAVEN_CENTRAL, "org.objectweb.asm.ClassVisitor"),

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ org.gradle.parallel=true
33
org.gradle.jvmargs=-Xmx1024m -XX:-UseGCOverheadLimit -Dfile.encoding=UTF-8
44

55
# FoxLoader properties
6-
foxloader.version=1.2.35
6+
foxloader.version=1.2.36
77
foxloader.lastReIndevTransformerChanges=1.2.33
88
# https://www.jitpack.io/#com.fox2code/FoxLoader
99

0 commit comments

Comments
 (0)