From 915d437dd3d247f2af05936b581fdd7f1d7b0ccb Mon Sep 17 00:00:00 2001 From: David Green Date: Thu, 17 Dec 2015 09:47:38 +0000 Subject: [PATCH] Fixed a case-sensitive issue when loading the world age icons. --- pom.xml | 2 +- src/main/java/castledesigner/BuildingsPanel.java | 2 +- .../resources/{worldAges => world_ages}/age1.png | Bin .../resources/{worldAges => world_ages}/age2.png | Bin .../resources/{worldAges => world_ages}/age3.png | Bin .../resources/{worldAges => world_ages}/age4.png | Bin .../resources/{worldAges => world_ages}/age5.png | Bin 7 files changed, 2 insertions(+), 2 deletions(-) rename src/main/resources/{worldAges => world_ages}/age1.png (100%) rename src/main/resources/{worldAges => world_ages}/age2.png (100%) rename src/main/resources/{worldAges => world_ages}/age3.png (100%) rename src/main/resources/{worldAges => world_ages}/age4.png (100%) rename src/main/resources/{worldAges => world_ages}/age5.png (100%) diff --git a/pom.xml b/pom.xml index 83d3adc..9df5b68 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ groupid StrongholdKingdomsCastleDesigner - 1.10 + 1.11 jar StrongholdKingdomsCastleDesigner diff --git a/src/main/java/castledesigner/BuildingsPanel.java b/src/main/java/castledesigner/BuildingsPanel.java index b7e97f3..a328ecb 100644 --- a/src/main/java/castledesigner/BuildingsPanel.java +++ b/src/main/java/castledesigner/BuildingsPanel.java @@ -316,7 +316,7 @@ public void actionPerformed(ActionEvent e) private JToggleButton createWorldAgeButton(final int worldAge) { - String urlPath = "/worldAges/age" + String.valueOf(worldAge) + ".png"; + String urlPath = "/world_ages/age" + String.valueOf(worldAge) + ".png"; URL url = getClass().getResource(urlPath.toLowerCase()); Image image = null; diff --git a/src/main/resources/worldAges/age1.png b/src/main/resources/world_ages/age1.png similarity index 100% rename from src/main/resources/worldAges/age1.png rename to src/main/resources/world_ages/age1.png diff --git a/src/main/resources/worldAges/age2.png b/src/main/resources/world_ages/age2.png similarity index 100% rename from src/main/resources/worldAges/age2.png rename to src/main/resources/world_ages/age2.png diff --git a/src/main/resources/worldAges/age3.png b/src/main/resources/world_ages/age3.png similarity index 100% rename from src/main/resources/worldAges/age3.png rename to src/main/resources/world_ages/age3.png diff --git a/src/main/resources/worldAges/age4.png b/src/main/resources/world_ages/age4.png similarity index 100% rename from src/main/resources/worldAges/age4.png rename to src/main/resources/world_ages/age4.png diff --git a/src/main/resources/worldAges/age5.png b/src/main/resources/world_ages/age5.png similarity index 100% rename from src/main/resources/worldAges/age5.png rename to src/main/resources/world_ages/age5.png