aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm/shsupercm
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2021-12-31 09:43:07 +0200
committerSHsuperCM <shsupercm@gmail.com>2021-12-31 09:43:07 +0200
commitf99e664abacea4b08d78c6bae0760fb2928d3d4d (patch)
tree75319a00597df2099e7915e5e71043cfbd0d60f7 /src/main/java/shcm/shsupercm
parent31b76bc7de1a7200218f17b5fc5dec35a1218d67 (diff)
downloadCITResewn-f99e664abacea4b08d78c6bae0760fb2928d3d4d.tar.gz
CITResewn-f99e664abacea4b08d78c6bae0760fb2928d3d4d.tar.bz2
CITResewn-f99e664abacea4b08d78c6bae0760fb2928d3d4d.zip
Fixed subtextures not working with multiple override condition types
Fixes #81
Diffstat (limited to 'src/main/java/shcm/shsupercm')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java2
1 files changed, 1 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 6bb20fd..9ac21c0 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
@@ -434,7 +434,7 @@ public class CITItem extends CIT {
public static class CITOverrideList extends ModelOverrideList {
public void override(List<ModelOverride.Condition> key, BakedModel bakedModel) {
- Set<Identifier> conditionTypes = new HashSet<>(Arrays.asList(this.conditionTypes));
+ Set<Identifier> conditionTypes = new LinkedHashSet<>(Arrays.asList(this.conditionTypes));
for (ModelOverride.Condition condition : key)
conditionTypes.add(condition.getType());
this.conditionTypes = conditionTypes.toArray(new Identifier[0]);