Optimized shadows

This commit is contained in:
Anuken
2017-09-25 22:46:14 -04:00
parent ce75be6204
commit 8a24cc354d
4 changed files with 14 additions and 2 deletions

View File

@@ -181,7 +181,7 @@ public class Renderer extends RendererModule{
if(World.tile(worldx, worldy) != null){
Tile tile = World.tile(worldx, worldy);
if(l == 0){
if(tile.block() != Blocks.air){
if(tile.block() != Blocks.air && World.isAccessible(worldx, worldy)){
Draw.rect(tile.block().shadow, worldx * tilesize, worldy * tilesize);
}
}else if(l == 1){