make particle type definitions case insensitive

This commit is contained in:
octarine-noise
2016-02-21 12:12:38 +01:00
parent 1a6ffb251b
commit 8e251dc038

View File

@@ -13,7 +13,7 @@ class TextureMatcher() {
fun matches(icon: TextureAtlasSprite): Boolean {
val iconLocation = ResourceLocation(icon.iconName)
return (domain == null || domain == iconLocation.resourceDomain) &&
iconLocation.resourcePath.stripStart("blocks/").contains(path)
iconLocation.resourcePath.stripStart("blocks/").contains(path, ignoreCase = true)
}
}