fix: Missing cache for custom item models causing lags

This commit is contained in:
Linnea Gräf
2025-01-12 14:53:29 +01:00
parent 4562d294bb
commit f828a6c9ec
3 changed files with 12 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ object CustomSkyBlockTextures : FirmamentFeature {
val allItemCaches by lazy {
listOf(
skullTextureCache.cache,
CustomItemModelEvent.cache.cache,
CustomGlobalArmorOverrides.overrideCache.cache
)
}

View File

@@ -27,10 +27,6 @@ public class ReplaceItemModelPatch {
@Final
private Function<Identifier, ItemModel> modelGetter;
@Inject(method = "<init>", at = @At("TAIL"))
private void saveMissingModel(BakedModelManager bakedModelManager, CallbackInfo ci) {
}
@Unique
private boolean hasModel(Identifier identifier) {
return !(modelGetter.apply(identifier) instanceof MissingItemModel);