make game less blocky
This commit is contained in:
parent
aabe877c85
commit
c617be685b
15 changed files with 64 additions and 51 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 729 KiB After Width: | Height: | Size: 729 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5 KiB |
BIN
client/src/main/resources/textures/blocks/snowy_grass.png
Executable file
BIN
client/src/main/resources/textures/blocks/snowy_grass.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 207 B |
Loading…
Add table
Add a link
Reference in a new issue