Xray Mod (Fabric/Forge)

Xray Mod (Fabric/Forge)

1M Downloads

smooth lighting bug

ivoryh2o opened this issue ยท 2 comments

commented

I'm currently playing on the latest version of fabric, there is a bug with the smooth lighting that makes it look very blocky, like it is turned off. I tried playing without this mod installed and the issue is not present.

commented

How to fix this bug in fabric 1.17.1
Modify MixinMinecraftClient.java like this

if (XrayMain.getMod().getSelectedMode() != null) {
	if(XrayMain.getMod().getSelectedMode().isEnabled()) {
		ci.setReturnValue(false);
		ci.cancel();
	}
}
commented

It seems the mod always disables AmbientOcclusion (since getSelectedMode never returns null, no matter whether mode is enabled)