-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/missing data #63
Conversation
@@ -141,7 +148,10 @@ public static SizeI getImageDimensions(final ResourceLocation resourceLocation) | |||
} | |||
catch (final IOException e) | |||
{ | |||
Log.getLogger().warn(e); | |||
if (!(e instanceof NoSuchFileException || e instanceof FileNotFoundException)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normal java way is by putting this is an earlier catch block iirc, and then just add a // Noop comment (or log with debug level as opposed to warn?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is ok
Make missing textures only crash when in dev, in production use missingTexture instead
Small progress to #62