9
0
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:
NONPLAYT
2025-07-20 17:19:24 +03:00
parent e6f2fb48e5
commit 9952017a76
4 changed files with 37 additions and 0 deletions

View File

@@ -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 dragons 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.");