aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2021-09-18 16:50:03 +0300
committerSHsuperCM <shsupercm@gmail.com>2021-09-18 16:50:03 +0300
commitb3dd941dbed08e387876aa1b3fe779c0b7f50b83 (patch)
tree6fb80c19062920492613335e5c720356a3ca2b2f /src/main/java/shcm
parent158549e794a48d9defb52bee46ca02a4db30bdc8 (diff)
downloadCITResewn-b3dd941dbed08e387876aa1b3fe779c0b7f50b83.tar.gz
CITResewn-b3dd941dbed08e387876aa1b3fe779c0b7f50b83.tar.bz2
CITResewn-b3dd941dbed08e387876aa1b3fe779c0b7f50b83.zip
Added tile as alias for texture property
#32
Diffstat (limited to 'src/main/java/shcm')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java5
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);