Ignore urls that are empty:) Still 9.2

Small Update.....
Only wants to fix some mistakes in coding
Just like meanless "\n"
It is not easy to remove.
This commit is contained in:
xfl03 committed 2014-04-20 12:15:13 +08:00
1 parent 350904aeaf
commit 06c3dbb271
1 file changed
+1 -1
@@ -46,7 +46,7 @@ public class CustomSkinLoader {
refreshSkinURL(); // If the list is blank or null, try to load
// again.
for (String l : isCloak ? cloakURLs : skinURLs) {
if(l==null)
if(l==null||l.equalsIgnoreCase(""))
continue;
String loc = str_replace("*", playerName, l);
logger.log(Level.INFO, "Try to load " + (isCloak ? "cloak" : "skin") + " in " + loc);