mirror of
https://github.com/lov3b/Schack.git
synced 2025-01-18 21:00:11 +01:00
Bug där det inte funkar som jar
This commit is contained in:
parent
7d1155390d
commit
325cb26e41
@ -30,7 +30,7 @@ public abstract class Piece {
|
||||
protected void setPieceIcon(String className) throws IOException {
|
||||
String colorName = isWhite ? "White" : "Black";
|
||||
String fileName = colorName + className + ".png";
|
||||
InputStream is = getClass().getResourceAsStream("../img/" + fileName);
|
||||
InputStream is = getClass().getResourceAsStream("/img/" + fileName);
|
||||
icon = ImageIO.read(is);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user