Fixed HTML building

This commit is contained in:
Anuken
2017-05-03 13:08:02 -04:00
parent ccdd23fe6c
commit 6a453ce84b
8 changed files with 10 additions and 12 deletions

View File

@@ -126,7 +126,7 @@ public class Renderer{
if(recipe == null && !ui.hasMouse()){
Tile tile = World.cursorTile();
if(tile.block() != Blocks.air){
if(tile != null && tile.block() != Blocks.air){
if(tile.entity != null)
drawHealth(tile.entity.x, tile.entity.y, tile.entity.health, tile.entity.maxhealth);