1
0
Fork 0

make game less blocky

This commit is contained in:
Sen 2025-08-29 17:23:33 +02:00
parent aabe877c85
commit c617be685b
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
15 changed files with 64 additions and 51 deletions

View file

@ -35,7 +35,6 @@ import client.renderer.texture.TextureMap;
import client.renderer.tileentity.SpecialRenderer;
import client.world.ChunkClient;
import common.block.Block;
import common.block.BlockFalling;
import common.block.Material;
import common.block.artificial.BlockSlab;
import common.block.liquid.BlockDynamicLiquid;
@ -1808,7 +1807,7 @@ public class Renderer {
this.fluids.put(liquid.first(), sprites);
}
for(Block block : BlockRegistry.blocks()) {
if(block instanceof BlockFalling && !(block instanceof BlockAnvil)) {
if(block.isNonBlock()) {
String name = BlockRegistry.getName(block);
this.dynamic.put(block, texturemap.getAtlasSprite("blocks/" + name));
}
@ -3335,7 +3334,7 @@ public class Renderer {
return false;
else if(block.getMaterial().isLiquid())
return this.renderFluid(world, state, pos, rb);
else if(block instanceof BlockFalling && !(block instanceof BlockAnvil))
else if(block.isNonBlock())
return this.renderDynamic(world, state, pos, rb);
State mstate = state;
if(!this.gm.debugWorld) {
@ -3931,7 +3930,7 @@ public class Renderer {
{
BlockPos blockpos = blockPosIn.add(-(j & 1), 0, -(j >> 1 & 1));
if (blockAccess.getState(blockpos.up()).getBlock() == block)
if (blockAccess.getState(blockpos.up()).getBlock() != Blocks.air)
{
return 1.0F;
}

View file

Before

Width:  |  Height:  |  Size: 729 KiB

After

Width:  |  Height:  |  Size: 729 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B