CustomImageObject#getResourceLocation() should return null if it's not registered yet (thread safety)

This commit is contained in:
CrushedPixel
2015-07-17 13:33:48 +02:00
parent edf2f9ce13
commit 83b91b7d8e

View File

@@ -88,6 +88,7 @@ public class CustomImageObject implements GuiEntryListEntry {
e.printStackTrace(); e.printStackTrace();
} }
} }
return null;
} }
if(resourceLocation != null && !ResourceHelper.isRegistered(resourceLocation)) { if(resourceLocation != null && !ResourceHelper.isRegistered(resourceLocation)) {