Force lower case on tiles and matchTiles references in CTM

This commit is contained in:
Mike Primm 2019-12-08 01:55:39 -06:00
parent f910b1135d
commit a1351ed094

View File

@ -486,7 +486,7 @@ public class CTMTexturePack {
this.matchTiles = null;
}
else {
String[] tok = tokenize(v, " ");
String[] tok = tokenize(v.toLowerCase(), " ");
for (int i = 0; i < tok.length; i++) {
String t = tok[i];
if (t.endsWith(".png")) { /* Strip off PNG */
@ -505,7 +505,7 @@ public class CTMTexturePack {
return null;
}
else {
v = v.trim();
v = v.trim().toLowerCase();
if (v.length() == 0) {
return null;
}