Please do it like this I want things to be simple
This commit is contained in:
@@ -42,14 +42,15 @@ import net.minecraft.world.level.material.FogType;
|
||||
|
||||
@Mixin(FogRenderer.class)
|
||||
public class MixinFogRenderer {
|
||||
private static final ILodConfigWrapperSingleton CONFIG = SingletonHandler.get(ILodConfigWrapperSingleton.class);
|
||||
|
||||
private static ILodConfigWrapperSingleton CONFIG;
|
||||
|
||||
// Using this instead of Float.MAX_VALUE because Sodium don't like it.
|
||||
private static final float A_REALLY_REALLY_BIG_VALUE = 420694206942069.F;
|
||||
private static final float A_EVEN_LARGER_VALUE = 42069420694206942069.F;
|
||||
|
||||
@Inject(at = @At("RETURN"), method = "setupFog(Lnet/minecraft/client/Camera;Lnet/minecraft/client/renderer/FogRenderer$FogMode;FZ)V")
|
||||
private static void disableSetupFog(Camera camera, FogMode fogMode, float f, boolean bl, CallbackInfo callback) {
|
||||
if (CONFIG == null) CONFIG = SingletonHandler.get(ILodConfigWrapperSingleton.class);
|
||||
#if PRE_MC_1_17_1
|
||||
FluidState fluidState = camera.getFluidInCamera();
|
||||
boolean cameraNotInFluid = fluidState.isEmpty();
|
||||
|
||||
@@ -1,13 +1,16 @@
|
||||
{
|
||||
"schema_version": 1,
|
||||
"quilt_loader": {
|
||||
"group": "com.example",
|
||||
"group": "com.seibel.lod",
|
||||
"id": "lod",
|
||||
"version": "${version}",
|
||||
"metadata": {
|
||||
"name": "${mod_name}",
|
||||
"description": "${description}",
|
||||
"contributors": ${authors},
|
||||
"contributors": {
|
||||
"This needs to be": "an object",
|
||||
"I Already Don't Like": "Quilt"
|
||||
},
|
||||
"icon": "icon.png"
|
||||
},
|
||||
"entrypoints": {
|
||||
@@ -37,5 +40,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"mixin": "fabric.lod.mixins.json"
|
||||
}
|
||||
"mixin": "fabric.lod.mixins.json",
|
||||
"accessWidener" : "lod.accesswidener"
|
||||
}
|
||||
Reference in New Issue
Block a user