Skip to content

Commit

Permalink
Update 1.2.36
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox2Code committed Jan 23, 2024
1 parent 68abf37 commit 1481278
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.fox2code.foxloader.client.mixins;

import net.minecraft.src.client.renderer.block.TexturePackCustom;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(TexturePackCustom.class)
public class MixinTexturePackCustom {
@Unique private Boolean compatibilityStatus;

@Inject(method = "isCompatible", at = @At("HEAD"), cancellable = true)
public void hotfix_isCompatibleHead(CallbackInfoReturnable<Boolean> cir) {
if (this.compatibilityStatus != null) {
cir.setReturnValue(this.compatibilityStatus);
}
}

@Inject(method = "isCompatible", at = @At("RETURN"))
public void hotfix_isCompatibleReturn(CallbackInfoReturnable<Boolean> cir) {
this.compatibilityStatus = cir.getReturnValue();
}
}
1 change: 1 addition & 0 deletions client/src/main/resources/foxloader.client.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"MixinRenderEngine",
"MixinStringTranslate",
"MixinTextureMap",
"MixinTexturePackCustom",
"MixinTileEntity",
"MixinWorld"
]
Expand Down
2 changes: 1 addition & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {
}

// Do not expose JFallback API to mods
implementation("com.fox2code:JFallback:0.0.1")
implementation("com.fox2code:JFallback:0.0.2")

// Do no expose spark APIs to mods
implementation(project['spark.dependency'] as String)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DependencyHelper {

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

public static final Dependency[] commonDependencies = new Dependency[]{
new Dependency("org.ow2.asm:asm:9.6", MAVEN_CENTRAL, "org.objectweb.asm.ClassVisitor"),
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.parallel=true
org.gradle.jvmargs=-Xmx1024m -XX:-UseGCOverheadLimit -Dfile.encoding=UTF-8

# FoxLoader properties
foxloader.version=1.2.35
foxloader.version=1.2.36
foxloader.lastReIndevTransformerChanges=1.2.33
# https://www.jitpack.io/#com.fox2code/FoxLoader

Expand Down

0 comments on commit 1481278

Please sign in to comment.