Fix sky colour blending not working for render distances >16 (#3476)
This commit is contained in:
parent
0b9988bf45
commit
14f3120eed
1 changed files with 2 additions and 2 deletions
|
@ -261,9 +261,9 @@ public class ForgeHooksClient
|
|||
GameSettings settings = Minecraft.getMinecraft().gameSettings;
|
||||
int[] ranges = ForgeModContainer.blendRanges;
|
||||
int distance = 0;
|
||||
if (settings.fancyGraphics && settings.renderDistanceChunks >= 0 && settings.renderDistanceChunks < ranges.length)
|
||||
if (settings.fancyGraphics && ranges.length > 0)
|
||||
{
|
||||
distance = ranges[settings.renderDistanceChunks];
|
||||
distance = ranges[MathHelper.clamp_int(settings.renderDistanceChunks, 0, ranges.length-1)];
|
||||
}
|
||||
|
||||
int r = 0;
|
||||
|
|
Loading…
Reference in a new issue