Skip to content

Commit 000ac95

Browse files
committed
fix for issue #982: add town.zip file to repo, load different HTTP image
1 parent e5fb5bf commit 000ac95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jme3-examples/src/main/java/jme3test/asset/TestManyLocators.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class TestManyLocators {
4343
public static void main(String[] args){
4444
AssetManager am = JmeSystem.newAssetManager();
4545

46-
am.registerLocator("http://www.jmonkeyengine.com/wp-content/uploads/2010/09/",
46+
am.registerLocator("http://wiki.jmonkeyengine.org/jme3/beginner",
4747
UrlLocator.class);
4848

4949
am.registerLocator("town.zip", ZipLocator.class);
@@ -65,15 +65,15 @@ public static void main(String[] args){
6565
AssetInfo c = am.locateAsset(new ModelKey("glasstile2.png"));
6666

6767
// Try loading directly from HTTP
68-
AssetInfo d = am.locateAsset(new TextureKey("planet-2.jpg"));
68+
AssetInfo d = am.locateAsset(new TextureKey("beginner-physics.png"));
6969

7070
if (a == null)
7171
System.out.println("Failed to load from classpath");
7272
else
7373
System.out.println("Found classpath font: " + a.toString());
7474

7575
if (b == null)
76-
System.out.println("Failed to load from town.zip");
76+
System.out.println("Failed to load from town.zip file");
7777
else
7878
System.out.println("Found zip image: " + b.toString());
7979

jme3-examples/town.zip

624 KB
Binary file not shown.

0 commit comments

Comments
 (0)