From 2fb1392685ecc9b335a1ce5d42ff785eca26b004 Mon Sep 17 00:00:00 2001 From: minenash Date: Wed, 10 Feb 2021 11:38:04 -0500 Subject: [PATCH] Fixed crash when leaving servers/realms while Update World Icon was on --- gradle.properties | 2 +- .../java/com/minenash/seamless_loading_screen/FinishQuit.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 3f53af6..9d9a735 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,6 +10,6 @@ org.gradle.jvmargs=-Xmx1G fabric_version=0.30.0+1.16 # Mod Properties - mod_version = 1.3.0 + mod_version = 1.3.1 maven_group = com.minenash archives_base_name = seamless-loading-screen diff --git a/src/main/java/com/minenash/seamless_loading_screen/FinishQuit.java b/src/main/java/com/minenash/seamless_loading_screen/FinishQuit.java index bd150b7..34ea358 100644 --- a/src/main/java/com/minenash/seamless_loading_screen/FinishQuit.java +++ b/src/main/java/com/minenash/seamless_loading_screen/FinishQuit.java @@ -67,7 +67,7 @@ public void render(MatrixStack matrices, int _mouseX, int _mouseY, float _delta) e.printStackTrace(); } - if (Config.updateWorldIcon) + if (Config.updateWorldIcon && client.isInSingleplayer()) updateIcon(client.getServer().getIconFile(), nativeImage);