Changeset b2d7893 in lost-haven for main/Map.java
- Timestamp:
- Feb 20, 2021, 6:43:24 PM (4 years ago)
- Branches:
- master
- Children:
- 4d8825f
- Parents:
- a49176d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/Map.java
ra49176d rb2d7893 19 19 if (readMapFromImage) { 20 20 try { 21 BufferedImage img = ImageIO.read(getClass().getResource(" ../images/" + mapFile));21 BufferedImage img = ImageIO.read(getClass().getResource("/images/" + mapFile)); 22 22 int length = img.getHeight(); 23 23 int height = img.getWidth(); … … 101 101 } else { 102 102 try { 103 BufferedReader in = new BufferedReader(new FileReader(" ../" + mapFile));103 BufferedReader in = new BufferedReader(new FileReader("/" + mapFile)); 104 104 String str = in.readLine(); 105 105 int length = Integer.parseInt(str.substring(0, str.indexOf("x")));
Note:
See TracChangeset
for help on using the changeset viewer.