diff options
author | Linnea Gräf <nea@nea.moe> | 2024-03-31 22:08:44 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-03-31 22:08:44 +0200 |
commit | 8d32601d891cefe11e3e261343e84aab1a40c341 (patch) | |
tree | 4ec227b83fe4538cab72abe1648691e2cc48d149 /src/main/java/moe/nea/caelo/optifine | |
parent | 0414b87e02e51b51cf9ef0c165e5ed61e5193160 (diff) | |
download | veloxcaelo-8d32601d891cefe11e3e261343e84aab1a40c341.tar.gz veloxcaelo-8d32601d891cefe11e3e261343e84aab1a40c341.tar.bz2 veloxcaelo-8d32601d891cefe11e3e261343e84aab1a40c341.zip |
Add config ui
Diffstat (limited to 'src/main/java/moe/nea/caelo/optifine')
-rw-r--r-- | src/main/java/moe/nea/caelo/optifine/OptifineCustomItemCache.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/caelo/optifine/OptifineCustomItemCache.kt b/src/main/java/moe/nea/caelo/optifine/OptifineCustomItemCache.kt index 0bd6d78..ffe6627 100644 --- a/src/main/java/moe/nea/caelo/optifine/OptifineCustomItemCache.kt +++ b/src/main/java/moe/nea/caelo/optifine/OptifineCustomItemCache.kt @@ -1,6 +1,7 @@ package moe.nea.caelo.optifine import moe.nea.caelo.CaeloCommand +import moe.nea.caelo.config.CConfig import moe.nea.caelo.event.NeaTickEvent import moe.nea.caelo.util.Histogram import moe.nea.caelo.util.MC @@ -56,6 +57,8 @@ object OptifineCustomItemCache { type: Int, cir: CallbackInfoReturnable<CustomItemProperties?> ) { + if (!CConfig.config.optiCache.citCache) + return val key = CacheKey(itemStack, type) if (!map.containsKey(key)) { cacheStats.cacheMisses++ |