diff options
author | Linnea Gräf <nea@nea.moe> | 2024-06-14 15:02:09 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-06-14 15:02:09 +0200 |
commit | cd1826a49822e7be0fb583e7b540270560fb657d (patch) | |
tree | 7afe995a046934cd8d35dc08ae0be36d7587420c /src/main/java/moe/nea | |
parent | db2b96bd9801d1e9f0dc108520310f9add8df4b7 (diff) | |
download | firmament-cd1826a49822e7be0fb583e7b540270560fb657d.tar.gz firmament-cd1826a49822e7be0fb583e7b540270560fb657d.tar.bz2 firmament-cd1826a49822e7be0fb583e7b540270560fb657d.zip |
Fix global textures not working in hotbar
Diffstat (limited to 'src/main/java/moe/nea')
-rw-r--r-- | src/main/java/moe/nea/firmament/mixins/CustomModelBakerPatch.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/firmament/mixins/CustomModelBakerPatch.java b/src/main/java/moe/nea/firmament/mixins/CustomModelBakerPatch.java index 6bd9ba1..012a215 100644 --- a/src/main/java/moe/nea/firmament/mixins/CustomModelBakerPatch.java +++ b/src/main/java/moe/nea/firmament/mixins/CustomModelBakerPatch.java @@ -43,5 +43,8 @@ public abstract class CustomModelBakerPatch { public void onBake(BiFunction<Identifier, SpriteIdentifier, Sprite> spriteLoader, CallbackInfo ci) { BakeExtraModelsEvent.Companion.publish(new BakeExtraModelsEvent(this::addModel)); modelsToBake.values().forEach(model -> model.setParents(this::getOrLoadModel)); + modelsToBake.keySet().stream() + .filter(it -> !it.getNamespace().equals("minecraft")) + .forEach(it -> System.out.println("Non minecraft texture is being loaded: " + it)); } } |