From b3dd941dbed08e387876aa1b3fe779c0b7f50b83 Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Sat, 18 Sep 2021 16:50:03 +0300 Subject: Added tile as alias for texture property #32 --- src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java index 6523495..650d2d9 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java @@ -75,7 +75,10 @@ public class CITItem extends CIT { if (assetIdentifiers.size() == 0) { isTexture = true; - assetIdentifier = resolvePath(identifier, properties.getProperty("texture"), ".png", id -> pack.resourcePack.contains(ResourceType.CLIENT_RESOURCES, id)); + String textureProp = properties.getProperty("texture"); + if (textureProp == null) + textureProp = properties.getProperty("tile"); + assetIdentifier = resolvePath(identifier, textureProp, ".png", id -> pack.resourcePack.contains(ResourceType.CLIENT_RESOURCES, id)); if (assetIdentifier != null) assetIdentifiers.put(null, assetIdentifier); -- cgit