mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-22 08:19:19 +00:00
Don't use snapshots for acquiring blockstate
This commit is contained in:
@@ -389,6 +389,7 @@ public class DivineConfig {
|
||||
public static boolean sheepOptimization = true;
|
||||
public static boolean optimizedDragonRespawn = false;
|
||||
public static boolean reduceChuckLoadAndLookup = true;
|
||||
public static boolean createSnapshotOnRetrievingBlockState = true;
|
||||
public static boolean hopperThrottleWhenFull = false;
|
||||
public static int hopperThrottleSkipTicks = 0;
|
||||
|
||||
@@ -484,6 +485,9 @@ public class DivineConfig {
|
||||
"When enabled, improving performance and reducing lag during the dragon’s resurrection event.");
|
||||
reduceChuckLoadAndLookup = getBoolean(ConfigCategory.PERFORMANCE.key("optimizations.reduce-chunk-load-and-lookup"), reduceChuckLoadAndLookup,
|
||||
"If enabled, optimizes chunk loading and block state lookups by reducing the number of chunk accesses required during operations such as Enderman teleportation.");
|
||||
createSnapshotOnRetrievingBlockState = getBoolean(ConfigCategory.PERFORMANCE.key("optimizations.create-snapshot-on-retrieving-block-state"), createSnapshotOnRetrievingBlockState,
|
||||
"Whether to create a snapshot (copy) of BlockState data when plugins retrieve them.",
|
||||
"If false, plugins get direct BlockState access for better performance but risk data corruption from poor plugin design.");
|
||||
|
||||
hopperThrottleWhenFull = getBoolean(ConfigCategory.PERFORMANCE.key("optimizations.hopper-throttle-when-full.enabled"), hopperThrottleWhenFull,
|
||||
"When enabled, hoppers will throttle if target container is full.");
|
||||
|
||||
Reference in New Issue
Block a user