Skip to content

Commit

Permalink
Don't render null items
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Feb 27, 2015
1 parent ff0df97 commit 478052b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/tconstruct/client/FlexibleToolRenderer.java
Expand Up @@ -52,6 +52,9 @@ protected void specialAnimation(ItemRenderType type, ItemStack item) {}

@Override
public void renderItem (ItemRenderType type, ItemStack item, Object... data) {
if(item == null)
return;

Entity ent = null;
if (data.length > 1)
ent = (Entity) data[1];
Expand Down

0 comments on commit 478052b

Please sign in to comment.