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