2
0
Эх сурвалжийг харах

Merge pull request #287 from riccardobl/master

Fix for ZipLocator and path with the root slash
Kirill Vainer 10 жил өмнө
parent
commit
6312f1a813

+ 1 - 0
jme3-core/src/plugins/java/com/jme3/asset/plugins/ZipLocator.java

@@ -82,6 +82,7 @@ public class ZipLocator implements AssetLocator {
 
     public AssetInfo locate(AssetManager manager, AssetKey key) {
         String name = key.getName();
+        if(name.startsWith("/"))name=name.substring(1);
         ZipEntry entry = zipfile.getEntry(name);
         if (entry == null)
             return null;