Changeset b2d7893 in lost-haven for main/MapElement.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/MapElement.java
ra49176d rb2d7893 18 18 public MapElement(String imgFile, boolean passable) { 19 19 try { 20 this.img = ImageIO.read(getClass().getResource(" ../images/" + imgFile));20 this.img = ImageIO.read(getClass().getResource("/images/" + imgFile)); 21 21 this.passable = passable; 22 } catch (IOException ioe) { 22 } catch (Exception ioe) { 23 System.out.println("Failed to load image " + imgFile); 23 24 ioe.printStackTrace(); 24 25 }
Note:
See TracChangeset
for help on using the changeset viewer.