aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-02-13 15:18:02 +0100
committerLinnea Gräf <nea@nea.moe>2024-02-13 15:18:02 +0100
commited9b49c8a3ac76051f04037e4ae1ac760ba8d8c9 (patch)
tree9e678574041d926ebd59abad677d9a0e0e66f151 /src
parent9ae07ca59f57766c4825e33ef50b13cfffe16608 (diff)
downloadfirmament-ed9b49c8a3ac76051f04037e4ae1ac760ba8d8c9.tar.gz
firmament-ed9b49c8a3ac76051f04037e4ae1ac760ba8d8c9.tar.bz2
firmament-ed9b49c8a3ac76051f04037e4ae1ac760ba8d8c9.zip
Fix cache error with custom skyblock textures
Closes https://github.com/nea89o/Firmament/issues/24
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/texturepack/CustomSkyBlockTextures.kt2
1 files changed, 1 insertions, 1 deletions
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()
}