addressed couple warnings

This commit is contained in:
cola98765
2021-09-20 11:30:56 +02:00
parent 6e86a808a5
commit 3e634c082a
3 changed files with 9 additions and 16 deletions
@@ -169,8 +169,6 @@ public class LodBuilder
}
});
lodGenThreadPool.execute(thread);
return;
}
/**
@@ -291,7 +289,7 @@ public class LodBuilder
boolean hasCeiling = mc.getClientWorld().dimensionType().hasCeiling();
BlockPos.Mutable blockPos = new BlockPos.Mutable(0, 0, 0);
int index = 0;
int index;
if (dataToMerge == null)
{
@@ -649,7 +647,7 @@ public class LodBuilder
int red = 0;
int green = 0;
int blue = 0;
int color = 0;
int color;
for (int k = 0; k < texture.getFrameCount(); k++)
{
for (int i = 0; i < texture.getHeight(); i++)
@@ -779,7 +777,7 @@ public class LodBuilder
*/
private int getColorForBiome(int x, int z, Biome biome)
{
int colorInt = 0;
int colorInt;
switch (biome.getBiomeCategory())
{
@@ -141,7 +141,7 @@ public class LodDimensionFileHandler
// return anything
continue;
}
byte data[] = {0};
byte[] data = {0};
long dataSize = f.length();
dataSize -= 1;
if (dataSize > 0) {
@@ -300,7 +300,7 @@ public class LodDimensionFileHandler
// the old file is good, now create a new save file
File newFile = new File(fileName + TMP_FILE_EXTENSION);
try (OutputStream outputStream = new BufferedOutputStream(new FileOutputStream(newFile));) {
try (OutputStream outputStream = new BufferedOutputStream(new FileOutputStream(newFile))) {
// add the version of this file
outputStream.write(LOD_SAVE_FILE_VERSION);
@@ -546,8 +546,7 @@ public class LodRenderer
/**
* setup the lighting to be used for the LODs
*/
@SuppressWarnings( "unused" )
private void setupLighting(LodDimension lodDimension, float partialTicks)
/*private void setupLighting(LodDimension lodDimension, float partialTicks)
{
// Determine if the player has night vision
boolean playerHasNightVision = false;
@@ -565,7 +564,6 @@ public class LodRenderer
}
}
float sunBrightness = lodDimension.dimension.hasSkyLight() ? mc.getSkyDarken(partialTicks) : 0.2f;
sunBrightness = playerHasNightVision ? 1.0f : sunBrightness;
float gamma = (float) mc.getOptions().gamma - 0.0f;
@@ -573,7 +571,7 @@ public class LodRenderer
float lightStrength = (gamma * 0.34f - 0.01f) * (1.0f - dayEffect) + dayEffect - 0.20f; //gamma * 0.2980392157f + 0.1647058824f
float blueLightStrength = (gamma * 0.44f + 0.12f) * (1.0f - dayEffect) + dayEffect - 0.20f; //gamma * 0.4235294118f + 0.2784313725f
float lightAmbient[] = {lightStrength, lightStrength, blueLightStrength, 1.0f};
float[] lightAmbient = {lightStrength, lightStrength, blueLightStrength, 1.0f};
// can be used for debugging
@@ -586,7 +584,7 @@ public class LodRenderer
GL11.glEnable(LOD_GL_LIGHT_NUMBER); // Enable the above lighting
RenderSystem.enableLighting();
}
}*/
/**
* Create all buffers that will be used.
@@ -666,10 +664,7 @@ public class LodRenderer
FogDrawOverride override = LodConfig.CLIENT.graphics.fogDrawOverride.get();
if (quality == FogQuality.OFF)
fogSettings.vanillaIsRenderingFog = false;
else
fogSettings.vanillaIsRenderingFog = true;
fogSettings.vanillaIsRenderingFog = quality != FogQuality.OFF;
// use any fog overrides the user may have set