mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +01:00
Force lower case on tiles and matchTiles references in CTM
This commit is contained in:
parent
f910b1135d
commit
a1351ed094
@ -486,7 +486,7 @@ public class CTMTexturePack {
|
|||||||
this.matchTiles = null;
|
this.matchTiles = null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
String[] tok = tokenize(v, " ");
|
String[] tok = tokenize(v.toLowerCase(), " ");
|
||||||
for (int i = 0; i < tok.length; i++) {
|
for (int i = 0; i < tok.length; i++) {
|
||||||
String t = tok[i];
|
String t = tok[i];
|
||||||
if (t.endsWith(".png")) { /* Strip off PNG */
|
if (t.endsWith(".png")) { /* Strip off PNG */
|
||||||
@ -505,7 +505,7 @@ public class CTMTexturePack {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
v = v.trim();
|
v = v.trim().toLowerCase();
|
||||||
if (v.length() == 0) {
|
if (v.length() == 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user