From f99e664abacea4b08d78c6bae0760fb2928d3d4d Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Fri, 31 Dec 2021 09:43:07 +0200 Subject: Fixed subtextures not working with multiple override condition types Fixes #81 --- src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java | 2 +- 1 file changed, 1 insertion(+), 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 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 key, BakedModel bakedModel) { - Set conditionTypes = new HashSet<>(Arrays.asList(this.conditionTypes)); + Set conditionTypes = new LinkedHashSet<>(Arrays.asList(this.conditionTypes)); for (ModelOverride.Condition condition : key) conditionTypes.add(condition.getType()); this.conditionTypes = conditionTypes.toArray(new Identifier[0]); -- cgit