mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 04:32:26 +00:00
Default to white if a tool has a material that doesn't exist anymore
This commit is contained in:
1 parent
3cd211e9f4
commit
58031bb521
1 file changed
+4
-1
@@ -685,7 +685,10 @@ public abstract class ToolCore extends Item implements IEnergyContainerItem, IEq
|
||||
|
||||
protected int getDefaultColor(int renderPass, int materialID)
|
||||
{
|
||||
return TConstructRegistry.getMaterial(materialID).primaryColor();
|
||||
if(TConstructRegistry.getMaterial(materialID) != null)
|
||||
return TConstructRegistry.getMaterial(materialID).primaryColor();
|
||||
|
||||
return 0xffffffff;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user