Skip to content
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

Merged
merged 6 commits into from
Nov 2, 2023
Merged

Feature/missing data #63

merged 6 commits into from
Nov 2, 2023

Conversation

Nightenom
Copy link
Member

Make missing textures only crash when in dev, in production use missingTexture instead
Small progress to #62

@@ -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))
Copy link
Contributor

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?)

@Nightenom Nightenom merged commit 8ede38e into version/main Nov 2, 2023
@Nightenom Nightenom deleted the feature/missing-data branch November 2, 2023 18:54
@Nightenom Nightenom requested a review from Raycoms November 2, 2023 18:54
Copy link
Contributor

@Raycoms Raycoms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is ok

Nightenom added a commit that referenced this pull request Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants