aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/caelo/optifine
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/moe/nea/caelo/optifine')
-rw-r--r--src/main/java/moe/nea/caelo/optifine/OptifineCustomItemCache.kt3
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++