From ed9b49c8a3ac76051f04037e4ae1ac760ba8d8c9 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 13 Feb 2024 15:18:02 +0100 Subject: Fix cache error with custom skyblock textures Closes https://github.com/nea89o/Firmament/issues/24 --- .../moe/nea/firmament/features/texturepack/CustomSkyBlockTextures.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/kotlin/moe') diff --git a/src/main/kotlin/moe/nea/firmament/features/texturepack/CustomSkyBlockTextures.kt b/src/main/kotlin/moe/nea/firmament/features/texturepack/CustomSkyBlockTextures.kt index 11b0a06..d925d6e 100644 --- a/src/main/kotlin/moe/nea/firmament/features/texturepack/CustomSkyBlockTextures.kt +++ b/src/main/kotlin/moe/nea/firmament/features/texturepack/CustomSkyBlockTextures.kt @@ -44,7 +44,7 @@ object CustomSkyBlockTextures : FirmamentFeature { it.overrideModel = ModelIdentifier("firmskyblock", id.identifier.path, "inventory") } TickEvent.subscribe { - if (it.tickCount % TConfig.cacheDuration == 0) { + if (TConfig.cacheDuration < 1 || it.tickCount % TConfig.cacheDuration == 0) { CustomItemModelEvent.clearCache() skullTextureCache.clear() } -- cgit