From cd1826a49822e7be0fb583e7b540270560fb657d Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 14 Jun 2024 15:02:09 +0200 Subject: Fix global textures not working in hotbar --- src/main/java/moe/nea/firmament/mixins/CustomModelBakerPatch.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/moe/nea/firmament/mixins') 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 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)); } } -- cgit