Skip to content

Commit 9647caa

Browse files
Add explanation comment to new DefaultFluidRenderer injector
1 parent d22a1a9 commit 9647caa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
public class DefaultFluidRendererMixin
3838
{
3939
/**
40-
* Hides and shows fluids when using X-Ray with Sodium installed.
40+
* Hides and shows the top side of fluids when using X-Ray with Sodium
41+
* installed.
4142
*/
4243
@Inject(at = @At("HEAD"),
4344
method = "isFullBlockFluidOccluded(Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Z",
@@ -55,6 +56,10 @@ private void onIsFullBlockFluidOccluded(BlockAndTintGetter world,
5556
cir.setReturnValue(!event.isRendered());
5657
}
5758

59+
/**
60+
* Hides and shows all other sides of fluids when using X-Ray with Sodium
61+
* installed.
62+
*/
5863
@Inject(at = @At("HEAD"),
5964
method = "isSideExposed(Lnet/minecraft/class_1920;IIILnet/minecraft/class_2350;F)Z",
6065
cancellable = true,

0 commit comments

Comments
 (0)