Using config option for saving to cache.
This commit is contained in:
@ -45,8 +45,10 @@ public class OnBlockBreakEventHandler {
|
||||
);
|
||||
|
||||
// Save operations to cache
|
||||
if (Config.Server.optimizationUseCache.get()) {
|
||||
OperationCache.addBlockBreakCacheEntry(block_id, operations);
|
||||
}
|
||||
}
|
||||
|
||||
// Add global operations before all others
|
||||
operations.addAll(0, Config.Server.blockBreakGlobalOperationItems);
|
||||
|
@ -45,8 +45,10 @@ public class OnLivingExperienceDropEventHandler {
|
||||
);
|
||||
|
||||
// Save operations to cache
|
||||
if (Config.Server.optimizationUseCache.get()) {
|
||||
OperationCache.addEntityKillCacheEntry(entity_id, operations);
|
||||
}
|
||||
}
|
||||
|
||||
// Add global operations before all others
|
||||
operations.addAll(0, Config.Server.entityKillGlobalOperationItems);
|
||||
|
Reference in New Issue
Block a user