From 325cb26e41adb75d717407903e782b016595868c Mon Sep 17 00:00:00 2001 From: lov3b Date: Wed, 30 Mar 2022 20:05:23 +0200 Subject: [PATCH] =?UTF-8?q?Bug=20d=C3=A4r=20det=20inte=20funkar=20som=20ja?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/schack/Piece.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schack/Piece.java b/src/schack/Piece.java index 4868214..3d3af3b 100644 --- a/src/schack/Piece.java +++ b/src/schack/Piece.java @@ -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); }