Using config option for saving to cache.
This commit is contained in:
@ -45,7 +45,9 @@ public class OnBlockBreakEventHandler {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Save operations to cache
|
// 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
|
// Add global operations before all others
|
||||||
|
@ -45,7 +45,9 @@ public class OnLivingExperienceDropEventHandler {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Save operations to cache
|
// 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
|
// Add global operations before all others
|
||||||
|
Reference in New Issue
Block a user