Skip to content

Commit 7a68800

Browse files
authored
Catch more exceptions in Waypoints#init (#6004)
Fixes a crash when using meteor alongside rusherhack
1 parent 031ce0e commit 7a68800

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • src/main/java/meteordevelopment/meteorclient/systems/waypoints

src/main/java/meteordevelopment/meteorclient/systems/waypoints/Waypoints.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
import java.io.File;
3131
import java.io.FileInputStream;
32-
import java.io.IOException;
3332
import java.io.InputStream;
3433
import java.util.Collection;
3534
import java.util.Iterator;
@@ -75,7 +74,7 @@ public void init() {
7574
AbstractTexture texture = new NativeImageBackedTexture(() -> name, NativeImage.read(inputStream));
7675
icons.put(name, texture);
7776
}
78-
catch (IOException e) {
77+
catch (Exception e) {
7978
MeteorClient.LOG.error("Failed to read a waypoint icon", e);
8079
}
8180
}

0 commit comments

Comments
 (0)