Fixed font missing issue when loading a packaged version of the application on OSX

This commit is contained in:
Brendan Robert 2017-12-26 14:35:13 -06:00
parent 9ce60ea00e
commit 09c1d78832
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class Font {
initialized = true;
font = new int[256][8];
Thread fontLoader = new Thread(() -> {
InputStream in = ClassLoader.getSystemResourceAsStream("jace/data/font.png");
InputStream in = Font.class.getClassLoader().getResourceAsStream("jace/data/font.png");
Image image = new Image(in);
PixelReader reader = image.getPixelReader();
for (int i = 0; i < 256; i++) {