-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/multiloader' into 1.19.2/multiloader
# Conflicts: # fabric/src/main/resources/copycats-fabric.mixins.json
- Loading branch information
Showing
9 changed files
with
126 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...c/main/java/com/copycatsplus/copycats/fabric/mixin/compat/indium/GeometryHelperMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.copycatsplus.copycats.fabric.mixin.compat.indium; | ||
|
||
import com.copycatsplus.copycats.foundation.copycat.model.assembly.MutableQuad; | ||
import link.infra.indium.renderer.helper.GeometryHelper; | ||
import net.minecraft.core.Direction; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Pseudo; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
|
||
@Mixin(GeometryHelper.class) | ||
@Pseudo | ||
public class GeometryHelperMixin { | ||
@Inject( | ||
method = "longestAxis(FFF)Lnet/minecraft/core/Direction$Axis;", | ||
at = @At("HEAD"), | ||
cancellable = true | ||
) | ||
private static void longestAxis(float normalX, float normalY, float normalZ, CallbackInfoReturnable<Direction.Axis> cir) { | ||
cir.setReturnValue(MutableQuad.longestAxis(normalX, normalY, normalZ)); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...rc/main/java/com/copycatsplus/copycats/fabric/mixin/copycat/base/GeometryHelperMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.copycatsplus.copycats.fabric.mixin.copycat.base; | ||
|
||
import com.copycatsplus.copycats.foundation.copycat.model.assembly.MutableQuad; | ||
import net.fabricmc.fabric.impl.client.indigo.renderer.helper.GeometryHelper; | ||
import net.minecraft.core.Direction; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Pseudo; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
|
||
@Mixin(GeometryHelper.class) | ||
@Pseudo | ||
public class GeometryHelperMixin { | ||
@Inject( | ||
method = "longestAxis(FFF)Lnet/minecraft/core/Direction$Axis;", | ||
at = @At("HEAD"), | ||
cancellable = true | ||
) | ||
private static void longestAxis(float normalX, float normalY, float normalZ, CallbackInfoReturnable<Direction.Axis> cir) { | ||
cir.setReturnValue(MutableQuad.longestAxis(normalX, normalY, normalZ)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"homepage": "https://github.com/copycats-plus/copycats/", | ||
"promos": { | ||
"1.20.1-recommended": "1.20.1-1.3.8", | ||
"1.19.2-recommended": "1.19.2-1.3.8", | ||
"1.18.2-recommended": "1.18.2-1.3.8" | ||
"1.20.1-recommended": "1.20.1-2.0.0", | ||
"1.19.2-recommended": "1.19.2-2.0.0", | ||
"1.18.2-recommended": "1.18.2-2.0.0" | ||
} | ||
} |