improve visuals
This commit is contained in:
parent
c617be685b
commit
31bdece813
42 changed files with 190 additions and 281 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue