Fixed deep dark not blackening lods

This commit is contained in:
coolGi
2023-09-02 20:59:31 +09:30
parent 1de8cfb001
commit 507b045eb9
2 changed files with 7 additions and 3 deletions
@@ -27,7 +27,7 @@ import java.util.*;
*
* @author coolGi
*/
// TODO: After finishing the config, rewrite this in openGL as well
// TODO: After finishing the config, rewrite this in Java Swing as well
// and also maybe add this suggestion https://discord.com/channels/881614130614767666/1035863487110467625/1035949054485594192
public class UpdateModScreen extends DhScreen
{
@@ -111,9 +111,13 @@ public class MinecraftRenderWrapper implements IMinecraftRenderWrapper
}
@Override
public boolean playerHasBlindnessEffect()
public boolean playerHasBlindingEffect()
{
return MC.player.getActiveEffectsMap().get(MobEffects.BLINDNESS) != null;
return MC.player.getActiveEffectsMap().get(MobEffects.BLINDNESS) != null
#if POST_AND_MC_1_19_2
|| MC.player.getActiveEffectsMap().get(MobEffects.DARKNESS) != null // Deep dark effect
#endif
;
}
@Override