mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-23 17:09:29 +00:00
disable async target find when pwt enabled
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
package org.dreeam.leaf.config.modules.async;
|
package org.dreeam.leaf.config.modules.async;
|
||||||
|
|
||||||
import org.dreeam.leaf.config.ConfigModules;
|
import org.dreeam.leaf.config.ConfigModules;
|
||||||
import org.dreeam.leaf.config.EnumConfigCategory;
|
import org.dreeam.leaf.config.EnumConfigCategory;
|
||||||
|
import org.dreeam.leaf.config.LeafConfig;
|
||||||
|
|
||||||
public class AsyncTargetFinding extends ConfigModules {
|
public class AsyncTargetFinding extends ConfigModules {
|
||||||
|
|
||||||
@@ -33,6 +33,11 @@ public class AsyncTargetFinding extends ConfigModules {
|
|||||||
asyncTargetFindingInitialized = true;
|
asyncTargetFindingInitialized = true;
|
||||||
|
|
||||||
enabled = config.getBoolean(getBasePath() + ".enabled", enabled);
|
enabled = config.getBoolean(getBasePath() + ".enabled", enabled);
|
||||||
|
// Disable if parallel world ticking is enabled, as they are incompatible.
|
||||||
|
if (enabled && SparklyPaperParallelWorldTicking.enabled) {
|
||||||
|
LeafConfig.LOGGER.warn("Async Target Finding is incompatible with Parallel World Ticking. Disabling Async Target Finding automatically.");
|
||||||
|
enabled = false;
|
||||||
|
}
|
||||||
alertOther = config.getBoolean(getBasePath() + ".async-alert-other", true);
|
alertOther = config.getBoolean(getBasePath() + ".async-alert-other", true);
|
||||||
searchBlock = config.getBoolean(getBasePath() + ".async-search-block", true);
|
searchBlock = config.getBoolean(getBasePath() + ".async-search-block", true);
|
||||||
searchEntity = config.getBoolean(getBasePath() + ".async-search-entity", true);
|
searchEntity = config.getBoolean(getBasePath() + ".async-search-entity", true);
|
||||||
|
|||||||
Reference in New Issue
Block a user