Using config option for saving to cache.

This commit is contained in:
2025-05-26 18:56:43 +01:00
parent efe3e54c62
commit dbe3f19790
2 changed files with 6 additions and 2 deletions

View File

@ -45,7 +45,9 @@ public class OnBlockBreakEventHandler {
);
// Save operations to cache
OperationCache.addBlockBreakCacheEntry(block_id, operations);
if (Config.Server.optimizationUseCache.get()) {
OperationCache.addBlockBreakCacheEntry(block_id, operations);
}
}
// Add global operations before all others

View File

@ -45,7 +45,9 @@ public class OnLivingExperienceDropEventHandler {
);
// Save operations to cache
OperationCache.addEntityKillCacheEntry(entity_id, operations);
if (Config.Server.optimizationUseCache.get()) {
OperationCache.addEntityKillCacheEntry(entity_id, operations);
}
}
// Add global operations before all others