forked from mirror/Folia
Use postprocess annotation for config
This commit is contained in:
parent
6c59a955b0
commit
dc3fcef3bb
@ -2388,7 +2388,7 @@ index bd68139ae635f2ad7ec8e7a21e0056a139c4c62e..48a43341b17247355a531164019d5cc9
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java
|
||||
index a6f58b3457b7477015c5c6d969e7d83017dd3fa1..92298630631379756a66ae58396ae4c818e8e9e1 100644
|
||||
index a6f58b3457b7477015c5c6d969e7d83017dd3fa1..057df4b34a9eb252965aa2510b364e444a8f7e4b 100644
|
||||
--- a/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java
|
||||
+++ b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java
|
||||
@@ -341,4 +341,17 @@ public class GlobalConfiguration extends ConfigurationPart {
|
||||
@ -2398,11 +2398,11 @@ index a6f58b3457b7477015c5c6d969e7d83017dd3fa1..92298630631379756a66ae58396ae4c8
|
||||
+
|
||||
+ // Folia start - threaded regions
|
||||
+ public ThreadedRegions threadedRegions;
|
||||
+ public class ThreadedRegions extends Post {
|
||||
+ public class ThreadedRegions extends ConfigurationPart {
|
||||
+
|
||||
+ public int threads = -1;
|
||||
+
|
||||
+ @Override
|
||||
+ @PostProcess
|
||||
+ public void postProcess() {
|
||||
+ io.papermc.paper.threadedregions.TickRegions.init(this);
|
||||
+ }
|
||||
@ -2410,17 +2410,16 @@ index a6f58b3457b7477015c5c6d969e7d83017dd3fa1..92298630631379756a66ae58396ae4c8
|
||||
+ // Folia end - threaded regions
|
||||
}
|
||||
diff --git a/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java b/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java
|
||||
index c9ae7e88afb1ca8349a118c6b491a1e1e83517a7..e9cadf3a2eaca6606777eb4d15b1b7b16c1be9ae 100644
|
||||
index c9ae7e88afb1ca8349a118c6b491a1e1e83517a7..1e3ae1cb466b4757ce7fc0bd0201190230756bcc 100644
|
||||
--- a/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java
|
||||
+++ b/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java
|
||||
@@ -468,7 +468,14 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||
|
||||
@@ -469,6 +469,14 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||
public Chunks chunks;
|
||||
|
||||
- public class Chunks extends ConfigurationPart {
|
||||
+ // Folia start - region threading - force prevent moving into unloaded chunks
|
||||
+ public class Chunks extends Post {
|
||||
+ @Override
|
||||
public class Chunks extends ConfigurationPart {
|
||||
+
|
||||
+ // Folia start - region threading - force prevent moving into unloaded chunks
|
||||
+ @PostProcess
|
||||
+ public void postProcess() {
|
||||
+ this.preventMovingIntoUnloadedChunks = true;
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user