Skip to content

Commit 7ba6c32

Browse files
Fix X-Ray not working when Sodium is installed
Fixes Wurst-Imperium#1241 Fixes https://wurstforum.net/d/1375 Fixes https://wurstforum.net/d/1381
1 parent f029c80 commit 7ba6c32

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/java/net/wurstclient/mixin/SodiumAbstractBlockRenderContextMixin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ public class SodiumAbstractBlockRenderContextMixin
4141
* Hides and shows blocks when using X-Ray with Sodium installed.
4242
*/
4343
@Inject(at = @At("HEAD"),
44-
method = "isFaceCulled(Lnet/minecraft/util/math/Direction;)Z",
44+
method = "isFaceCulled(Lnet/minecraft/class_2350;)Z",
4545
cancellable = true,
46+
remap = false,
4647
require = 0)
4748
private void onIsFaceCulled(@Nullable Direction face,
4849
CallbackInfoReturnable<Boolean> cir)

src/main/java/net/wurstclient/mixin/SodiumDefaultFluidRendererMixin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ public class SodiumDefaultFluidRendererMixin
4040
* Hides and shows fluids when using X-Ray with Sodium installed.
4141
*/
4242
@Inject(at = @At("HEAD"),
43-
method = "isFullBlockFluidOccluded(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;)Z",
43+
method = "isFullBlockFluidOccluded(Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Z",
4444
cancellable = true,
45+
remap = false,
4546
require = 0)
4647
private void onIsFullBlockFluidOccluded(BlockRenderView world, BlockPos pos,
4748
Direction dir, BlockState state, FluidState fluid,

0 commit comments

Comments
 (0)