Fix cache error with custom skyblock textures

Closes https://github.com/nea89o/Firmament/issues/24
This commit is contained in:
Linnea Gräf
2024-02-13 15:18:02 +01:00
parent 9ae07ca59f
commit ed9b49c8a3

View File

@@ -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()
}