1
0
Fork 0

improve visuals

This commit is contained in:
Sen 2025-08-29 19:24:36 +02:00
parent c617be685b
commit 31bdece813
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
42 changed files with 190 additions and 281 deletions

View file

@ -3925,6 +3925,7 @@ public class Renderer {
{
int i = 0;
float f = 0.0F;
int n = 0;
for (int j = 0; j < 4; ++j)
{
@ -3934,11 +3935,15 @@ public class Renderer {
{
return 1.0F;
}
if (blockAccess.getState(blockpos.down()).getBlock() == Blocks.air)
{
n++;
}
State iblockstate = blockAccess.getState(blockpos);
Block material = iblockstate.getBlock();
if (material != block)
if (!material.isNonBlock()) // material != block
{
if (material == Blocks.air)
{
@ -3956,6 +3961,6 @@ public class Renderer {
}
}
return 1.0F - f / (float)i;
return n == 4 ? 1.0f : 1.0F - f / (float)i;
}
}