Fix cache error with custom skyblock textures
Closes https://github.com/nea89o/Firmament/issues/24
This commit is contained in:
@@ -44,7 +44,7 @@ object CustomSkyBlockTextures : FirmamentFeature {
|
|||||||
it.overrideModel = ModelIdentifier("firmskyblock", id.identifier.path, "inventory")
|
it.overrideModel = ModelIdentifier("firmskyblock", id.identifier.path, "inventory")
|
||||||
}
|
}
|
||||||
TickEvent.subscribe {
|
TickEvent.subscribe {
|
||||||
if (it.tickCount % TConfig.cacheDuration == 0) {
|
if (TConfig.cacheDuration < 1 || it.tickCount % TConfig.cacheDuration == 0) {
|
||||||
CustomItemModelEvent.clearCache()
|
CustomItemModelEvent.clearCache()
|
||||||
skullTextureCache.clear()
|
skullTextureCache.clear()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user