Fix SleepyTrousers/EnderIO#2603 crash in creative tab rendering

This commit is contained in:
tterrag1098 committed 2015-06-23 21:12:07 -04:00
1 parent 32c405b3b8
commit 1905796463
1 file changed
+3
@@ -377,6 +377,9 @@ public class TechneUtil {
}
public static boolean renderWorldBlock(Collection<GroupObject> model, IIcon icon, IBlockAccess world, int x, int y, int z, Block block, RenderBlocks rb) {
if (icon == null) {
return false;
}
tes.setBrightness(block.getMixedBrightnessForBlock(world, x, y, z));
tes.setColorOpaque_F(1, 1, 1);
tes.addTranslation(x + .5F, y + 0.0375f, z + .5F);