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,12 +36,14 @@ public class ClientProxy extends CommonProxy
{ {
for (IronChestType type : IronChestType.values()) for (IronChestType type : IronChestType.values())
{ {
ClientRegistry.bindTileEntitySpecialRenderer(type.clazz, new TileEntityIronChestRenderer()); if (type.clazz != null)
ClientRegistry.bindTileEntitySpecialRenderer(type.clazz, new TileEntityIronChestRenderer());
} }
for (IronShulkerBoxType type : IronShulkerBoxType.values()) for (IronShulkerBoxType type : IronShulkerBoxType.values())
{ {
ClientRegistry.bindTileEntitySpecialRenderer(type.clazz, new TileEntityIronShulkerBoxRenderer()); if (type.clazz != null)
ClientRegistry.bindTileEntitySpecialRenderer(type.clazz, new TileEntityIronShulkerBoxRenderer());
} }
} }