Fix registering TESR's while the class is null. Closes #156

This commit is contained in:
alexbegt 2018-12-19 19:31:59 -05:00
parent b0f79d170a
commit 2db43e58c6
1 changed files with 4 additions and 2 deletions

View File

@ -36,11 +36,13 @@ public class ClientProxy extends CommonProxy
{
for (IronChestType type : IronChestType.values())
{
if (type.clazz != null)
ClientRegistry.bindTileEntitySpecialRenderer(type.clazz, new TileEntityIronChestRenderer());
}
for (IronShulkerBoxType type : IronShulkerBoxType.values())
{
if (type.clazz != null)
ClientRegistry.bindTileEntitySpecialRenderer(type.clazz, new TileEntityIronShulkerBoxRenderer());
}
}