CustomImageObject#getResourceLocation() should return null if it's not registered yet (thread safety)
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user