Prevent the renderer from rendering anything but tinkers stuff #1419

This commit is contained in:
Bernhard Bonigl committed 2015-02-27 13:08:18 +01:00
1 parent 4b240acbf7
commit 22e6378e16
1 file changed
+1 -1
@@ -52,7 +52,7 @@ public class FlexibleToolRenderer implements IItemRenderer {
@Override
public void renderItem (ItemRenderType type, ItemStack item, Object... data) {
if(item == null)
if(item == null || item.getItem() == null || !(item.getItem() instanceof ToolCore))
return;
Entity ent = null;