diff options
author | SHsuperCM <shsupercm@gmail.com> | 2021-09-18 16:50:03 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2021-09-18 16:50:03 +0300 |
commit | b3dd941dbed08e387876aa1b3fe779c0b7f50b83 (patch) | |
tree | 6fb80c19062920492613335e5c720356a3ca2b2f | |
parent | 158549e794a48d9defb52bee46ca02a4db30bdc8 (diff) | |
download | CITResewn-b3dd941dbed08e387876aa1b3fe779c0b7f50b83.tar.gz CITResewn-b3dd941dbed08e387876aa1b3fe779c0b7f50b83.tar.bz2 CITResewn-b3dd941dbed08e387876aa1b3fe779c0b7f50b83.zip |
Added tile as alias for texture property
#32
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java | 5 |
1 files changed, 4 insertions, 1 deletions
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); |