diff options
author | SHsuperCM <shsupercm@gmail.com> | 2021-09-25 16:50:47 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2021-09-25 17:54:24 +0300 |
commit | 575024387bf8d8863d3a9b3d52993019cefda3f0 (patch) | |
tree | 473ffdbbb7478053accc48cafc93a13625e200b6 /src/main/java/shcm/shsupercm/fabric/citresewn/mixin | |
parent | 9829aa863a240c8f668ffd565c81621e89fc6184 (diff) | |
download | CITResewn-575024387bf8d8863d3a9b3d52993019cefda3f0.tar.gz CITResewn-575024387bf8d8863d3a9b3d52993019cefda3f0.tar.bz2 CITResewn-575024387bf8d8863d3a9b3d52993019cefda3f0.zip |
Support for multiple overriding textures on the same model
Fixes #33
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/mixin')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/mixin/cititem/ModelLoaderMixin.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/cititem/ModelLoaderMixin.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/cititem/ModelLoaderMixin.java index 446e2bf..c8489fe 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/cititem/ModelLoaderMixin.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/cititem/ModelLoaderMixin.java @@ -46,8 +46,7 @@ public class ModelLoaderMixin { @Shadow @Final private Map<Identifier, BakedModel> bakedModels; @Inject(method = "addModel", at = @At("TAIL")) - public void addCITItemModels(ModelIdentifier eventModelId, CallbackInfo ci) { - if (eventModelId != ModelLoader.MISSING_ID) return; + public void addCITItemModels(ModelIdentifier eventModelId, CallbackInfo ci) { if (eventModelId != ModelLoader.MISSING_ID) return; if (CITResewn.INSTANCE.activeCITs == null) return; @@ -69,6 +68,8 @@ public class ModelLoaderMixin { CITResewn.logErrorLoading(e.getMessage()); } }); + + CITItem.GENERATED_SUB_CITS_SEEN.clear(); } @Inject(method = "upload", at = @At("RETURN")) |