mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-15 01:24:58 +00:00
Wrapped fluid rendering with safeIcon method.
This commit is contained in:
1 parent
3b762d300f
commit
112c0abc08
2 files changed
+9
-1
No files matched your search
@@ -176,4 +176,12 @@ public class TextureUtils
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static Icon safeIcon(Icon icon)
|
||||
{
|
||||
if(icon == null)
|
||||
icon = ((TextureMap)Minecraft.getMinecraft().getTextureManager().getTexture(TextureMap.locationBlocksTexture)).getAtlasSprite("missingno");
|
||||
|
||||
return icon;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user