Storage Monitors don't render any quantity text when no item is specified to monitor anymore

This commit is contained in:
raoulvdberge
2017-04-02 11:43:28 +02:00
parent 162394b789
commit 3478435bd3
2 changed files with 6 additions and 1 deletions

View File

@@ -118,7 +118,9 @@ public class TileEntitySpecialRendererStorageMonitor extends TileEntitySpecialRe
float factor = 2.0f;
GlStateManager.scale(size * factor, size * factor, size);
Minecraft.getMinecraft().fontRenderer.drawString(amount, 0, 0, 0xFFFFFF);
if (tile.getItemStack() != null) {
Minecraft.getMinecraft().fontRenderer.drawString(amount, 0, 0, 0xFFFFFF);
}
GlStateManager.popMatrix();