Skip to content

Commit

Permalink
Fix remapping issue
Browse files Browse the repository at this point in the history
  • Loading branch information
senseiwells committed Jan 5, 2025
1 parent 01b2f17 commit a89d2c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
maven("https://jitpack.io")
}

val modVersion = "2.1.0"
val modVersion = "2.1.1"
val releaseVersion = "${modVersion}+${libs.versions.minecraft.get()}"
version = releaseVersion
group = "me.senseiwells"
Expand Down Expand Up @@ -71,8 +71,7 @@ tasks {
publishMods {
file = remapJar.get().archiveFile
changelog = """
- Fixed highlight liquids not working with sodium
- Fixed error with carpet client
- Fixed remapping issue causing a crash when opening a world
""".trimIndent()
type = STABLE
modLoaders.add("fabric")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
import java.util.Arrays;
import java.util.List;

@Mixin(value = DefaultFluidRenderer.class, remap = false)
@Mixin(DefaultFluidRenderer.class)
public abstract class DefaultFluidRenderMixin {
@Unique private final ModelQuadViewMutable highlightQuad = new ModelQuad();

@Shadow @Final private float[] brightness;
@Shadow(remap = false) @Final private float[] brightness;

@Shadow @Final private int[] quadColors;
@Shadow(remap = false) @Final private int[] quadColors;

@Shadow protected abstract boolean isSideExposed(BlockAndTintGetter world, int x, int y, int z, Direction dir, float height);

Expand Down Expand Up @@ -129,7 +129,8 @@ private boolean shouldCullFace(
at = @At(
value = "INVOKE",
target = "Lnet/caffeinemc/mods/sodium/client/render/chunk/compile/pipeline/DefaultFluidRenderer;setVertex(Lnet/caffeinemc/mods/sodium/client/model/quad/ModelQuadViewMutable;IFFFFF)V"
)
),
remap = false
)
private boolean onVertex(
ModelQuadViewMutable quad,
Expand Down Expand Up @@ -189,7 +190,7 @@ private void onWriteQuad(
method = "render",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/core/Direction;getAxis()Lnet/minecraft/core/Direction$Axis;"
target = "Lnet/caffeinemc/mods/sodium/client/model/quad/properties/ModelQuadFacing;fromDirection(Lnet/minecraft/core/Direction;)Lnet/caffeinemc/mods/sodium/client/model/quad/properties/ModelQuadFacing;"
)
)
private void onAxis(
Expand Down

0 comments on commit a89d2c6

Please sign in to comment.