Skip to content

Commit

Permalink
Fix issue with dynamic lights world mixin not respecting opaque blocks (
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkShadow44 authored Feb 17, 2025
1 parent 0528240 commit c66bf86
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ public abstract class MixinWorld {
}

@ModifyReturnValue(method = "getLightBrightnessForSkyBlocks", at = @At(value = "RETURN"))
private int angelica$dynamiclights_getLightBrightnessForSkyBlocks(int lightmap, int p_72802_1_, int p_72802_2_, int p_72802_3_, int p_72802_4_){
if (DynamicLights.isEnabled()){
return DynamicLights.get().getLightmapWithDynamicLight(p_72802_1_, p_72802_2_, p_72802_3_, lightmap);
private int angelica$dynamiclights_getLightBrightnessForSkyBlocks(int lightmap, int x, int y, int z, int p_72802_4_){
if (DynamicLights.isEnabled() && !getBlock(x, y, z).isOpaqueCube()){
return DynamicLights.get().getLightmapWithDynamicLight(x, y, z, lightmap);
}
return lightmap;
}
Expand Down

0 comments on commit c66bf86

Please sign in to comment.