Fix registering TESR's while the class is null. Closes #156
This commit is contained in:
parent
b0f79d170a
commit
2db43e58c6
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue