From a1351ed09435d612cda4bd873a84afc57cec608c Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Sun, 8 Dec 2019 01:55:39 -0600 Subject: [PATCH] Force lower case on tiles and matchTiles references in CTM --- DynmapCore/src/main/java/org/dynmap/hdmap/CTMTexturePack.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DynmapCore/src/main/java/org/dynmap/hdmap/CTMTexturePack.java b/DynmapCore/src/main/java/org/dynmap/hdmap/CTMTexturePack.java index 21ed3a3c..5e0b69b6 100644 --- a/DynmapCore/src/main/java/org/dynmap/hdmap/CTMTexturePack.java +++ b/DynmapCore/src/main/java/org/dynmap/hdmap/CTMTexturePack.java @@ -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; }