mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-21 20:42:21 +00:00
Fix SleepyTrousers/EnderIO#2603 crash in creative tab rendering
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user