Skip to content

Commit 35710bb

Browse files
Update to Sodium mc1.21.11-0.8.0
1 parent 85e4122 commit 35710bb

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ mcx_repo_id=Wurst-Imperium/Wurst-MCX2
2626

2727
# Dependencies
2828
# check at https://modrinth.com/mod/sodium/versions?l=fabric&g=1.21.11
29-
sodium_version=mc1.21.10-0.7.3-fabric
30-
do_mod_compat_test=false
29+
sodium_version=mc1.21.11-0.8.0-fabric
30+
do_mod_compat_test=true

src/gametest/java/net/wurstclient/gametest/tests/XRayHackTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public static void testXRayHack(ClientGameTestContext context,
5656
input.pressKey(GLFW.GLFW_KEY_X);
5757
waitForChunkReloading(context, world);
5858
assertScreenshotEquals(context, "xray_opacity",
59-
"https://i.imgur.com/Ee9ZANB.png");
59+
WurstTest.IS_MOD_COMPAT_TEST ? "https://i.imgur.com/a3GWEwb.png"
60+
: "https://i.imgur.com/Ee9ZANB.png");
6061

6162
// Exposed only + opacity
6263
runWurstCommand(context, "setcheckbox X-Ray only_show_exposed on");
@@ -65,7 +66,8 @@ public static void testXRayHack(ClientGameTestContext context,
6566
input.pressKey(GLFW.GLFW_KEY_X);
6667
waitForChunkReloading(context, world);
6768
assertScreenshotEquals(context, "xray_exposed_only_opacity",
68-
"https://i.imgur.com/hQOQRVG.png");
69+
WurstTest.IS_MOD_COMPAT_TEST ? "https://i.imgur.com/CWbwr40.png"
70+
: "https://i.imgur.com/hQOQRVG.png");
6971

7072
// Clean up
7173
runCommand(server, "fill ~-5 ~-2 ~5 ~5 ~5 ~7 air");

src/main/java/net/wurstclient/mixin/sodium/AbstractBlockRenderContextMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323

2424
/**
2525
* Last updated for <a href=
26-
* "https://github.com/CaffeineMC/sodium/tree/02253db283e4679228ba5fbc30cfc851d17123c8">Sodium
27-
* 0.6.13+mc1.21.6</a>
26+
* "https://github.com/CaffeineMC/sodium/blob/1ddf7faacbf7be60aff3f00b49d90d199fdd706a/common/src/main/java/net/caffeinemc/mods/sodium/client/render/model/AbstractBlockRenderContext.java">Sodium
27+
* mc1.21.11-0.8.0</a>
2828
*/
2929
@Pseudo
3030
@Mixin(targets = {
31-
"net.caffeinemc.mods.sodium.client.render.frapi.render.AbstractBlockRenderContext"})
31+
"net.caffeinemc.mods.sodium.client.render.model.AbstractBlockRenderContext"})
3232
public class AbstractBlockRenderContextMixin
3333
{
3434
@Shadow

src/main/java/net/wurstclient/mixin/sodium/BlockRendererMixin.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
/**
2020
* Last updated for <a href=
21-
* "https://github.com/CaffeineMC/sodium/tree/02253db283e4679228ba5fbc30cfc851d17123c8">Sodium
22-
* 0.6.13+mc1.21.6</a>
21+
* "https://github.com/CaffeineMC/sodium/blob/1ddf7faacbf7be60aff3f00b49d90d199fdd706a/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/compile/pipeline/BlockRenderer.java">Sodium
22+
* mc1.21.11-0.8.0</a>
2323
*/
2424
@Pseudo
2525
@Mixin(targets = {
@@ -31,8 +31,8 @@ public class BlockRendererMixin extends AbstractBlockRenderContextMixin
3131
* Modifies opacity of blocks when using X-Ray with Sodium installed.
3232
*/
3333
@ModifyExpressionValue(at = @At(value = "INVOKE",
34-
target = "Lnet/caffeinemc/mods/sodium/client/render/frapi/mesh/MutableQuadViewImpl;color(I)I"),
35-
method = "bufferQuad(Lnet/caffeinemc/mods/sodium/client/render/frapi/mesh/MutableQuadViewImpl;[FLnet/caffeinemc/mods/sodium/client/render/chunk/terrain/material/Material;)V",
34+
target = "Lnet/caffeinemc/mods/sodium/client/render/model/MutableQuadViewImpl;baseColor(I)I"),
35+
method = "bufferQuad(Lnet/caffeinemc/mods/sodium/client/render/model/MutableQuadViewImpl;[FLnet/caffeinemc/mods/sodium/client/render/chunk/terrain/material/Material;)V",
3636
require = 0)
3737
private int onBufferQuad(int original)
3838
{

0 commit comments

Comments
 (0)