Skip to content

Commit

Permalink
change: Move cloud height modification to source class
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashyReese committed Dec 29, 2022
1 parent 4e158c3 commit e4600ab
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package me.flashyreese.mods.sodiumextra.mixin.cloud;

import me.flashyreese.mods.sodiumextra.client.SodiumExtraClientMod;
import net.minecraft.client.render.DimensionEffects;
import org.spongepowered.asm.mixin.Mixin;

@Mixin(DimensionEffects.Overworld.class)
public abstract class MixinDimensionEffectsOverworld extends DimensionEffects {
public MixinDimensionEffectsOverworld(float cloudsHeight, boolean alternateSkyColor, SkyType skyType, boolean brightenLighting, boolean darkened) {
super(cloudsHeight, alternateSkyColor, skyType, brightenLighting, darkened);
}

@Override
public float getCloudsHeight() {
return SodiumExtraClientMod.options().extraSettings.cloudHeight;
}
}

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/resources/sodium-extra.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"adaptive_sync.MixinWindow",
"animation.MixinSpriteAtlasTexture",
"biome_colors.MixinBiomeColors",
"cloud.MixinWorldRenderer",
"cloud.MixinDimensionEffectsOverworld",
"compat.MixinSodiumOptionsGUI",
"compat.MixinTitleScreen",
"fog.MixinBackgroundRenderer",
Expand Down

0 comments on commit e4600ab

Please sign in to comment.