Hide repeated error messages in logs

This commit is contained in:
Linnea Gräf
2024-02-13 16:35:10 +01:00
parent ed9b49c8a3
commit a20e3696ec
2 changed files with 10 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ object CustomSkyBlockTextures : FirmamentFeature {
it.overrideModel = ModelIdentifier("firmskyblock", id.identifier.path, "inventory")
}
TickEvent.subscribe {
throw RuntimeException()
if (TConfig.cacheDuration < 1 || it.tickCount % TConfig.cacheDuration == 0) {
CustomItemModelEvent.clearCache()
skullTextureCache.clear()