Default configuration changes
Disable push based hoppers by default Set chunk unload delay to 15s by default Neither of these changes are retroactive for old users
This commit is contained in:
parent
7dcb9b67ea
commit
c62efac3eb
2 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
From a23f74a3dfe8b30db36e7700bc380db109cbb060 Mon Sep 17 00:00:00 2001
|
From 610d21cb97d0f91919916b135a646f3ece9b78a6 Mon Sep 17 00:00:00 2001
|
||||||
From: Techcable <Techcable@outlook.com>
|
From: Techcable <Techcable@outlook.com>
|
||||||
Date: Sat, 18 Jun 2016 01:01:37 -0500
|
Date: Sat, 18 Jun 2016 01:01:37 -0500
|
||||||
Subject: [PATCH] Make entities look for hoppers
|
Subject: [PATCH] Make entities look for hoppers
|
||||||
|
@ -78,7 +78,7 @@ index 0000000..aef7c2b
|
||||||
+ double getZ();
|
+ double getZ();
|
||||||
+}
|
+}
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||||
index 3500b6c..86fda1a 100644
|
index 3500b6c..21c0a3f 100644
|
||||||
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||||
@@ -363,4 +363,9 @@ public class PaperWorldConfig {
|
@@ -363,4 +363,9 @@ public class PaperWorldConfig {
|
||||||
|
@ -88,7 +88,7 @@ index 3500b6c..86fda1a 100644
|
||||||
+
|
+
|
||||||
+ public boolean isHopperPushBased;
|
+ public boolean isHopperPushBased;
|
||||||
+ private void isHopperPushBased() {
|
+ private void isHopperPushBased() {
|
||||||
+ isHopperPushBased = getBoolean("hopper.push-based", true);
|
+ isHopperPushBased = getBoolean("hopper.push-based", false);
|
||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
diff --git a/src/main/java/net/minecraft/server/AxisAlignedBB.java b/src/main/java/net/minecraft/server/AxisAlignedBB.java
|
diff --git a/src/main/java/net/minecraft/server/AxisAlignedBB.java b/src/main/java/net/minecraft/server/AxisAlignedBB.java
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
From 30b54896e79fe497994706d5ddabd083b11201e6 Mon Sep 17 00:00:00 2001
|
From 3d70eed63d400403703741a82b6d244ad746d5b7 Mon Sep 17 00:00:00 2001
|
||||||
From: Aikar <aikar@aikar.co>
|
From: Aikar <aikar@aikar.co>
|
||||||
Date: Sat, 18 Jun 2016 23:22:12 -0400
|
Date: Sat, 18 Jun 2016 23:22:12 -0400
|
||||||
Subject: [PATCH] Delay Chunk Unloads based on Player Movement
|
Subject: [PATCH] Delay Chunk Unloads based on Player Movement
|
||||||
|
@ -17,17 +17,17 @@ This allows servers with smaller worlds who do less long distance exploring to s
|
||||||
wasting cpu cycles on saving/unloading/reloading chunks repeatedly.
|
wasting cpu cycles on saving/unloading/reloading chunks repeatedly.
|
||||||
|
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||||
index 86fda1a..17b90a0 100644
|
index 21c0a3f..bfe0bdb 100644
|
||||||
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||||
@@ -368,4 +368,13 @@ public class PaperWorldConfig {
|
@@ -368,4 +368,13 @@ public class PaperWorldConfig {
|
||||||
private void isHopperPushBased() {
|
private void isHopperPushBased() {
|
||||||
isHopperPushBased = getBoolean("hopper.push-based", true);
|
isHopperPushBased = getBoolean("hopper.push-based", false);
|
||||||
}
|
}
|
||||||
+
|
+
|
||||||
+ public long delayChunkUnloadsBy;
|
+ public long delayChunkUnloadsBy;
|
||||||
+ private void delayChunkUnloadsBy() {
|
+ private void delayChunkUnloadsBy() {
|
||||||
+ delayChunkUnloadsBy = PaperConfig.getSeconds(getString("delay-chunk-unloads-by", "0s"));
|
+ delayChunkUnloadsBy = PaperConfig.getSeconds(getString("delay-chunk-unloads-by", "10s"));
|
||||||
+ if (delayChunkUnloadsBy > 0) {
|
+ if (delayChunkUnloadsBy > 0) {
|
||||||
+ log("Delaying chunk unloads by " + delayChunkUnloadsBy + " seconds");
|
+ log("Delaying chunk unloads by " + delayChunkUnloadsBy + " seconds");
|
||||||
+ delayChunkUnloadsBy *= 1000;
|
+ delayChunkUnloadsBy *= 1000;
|
||||||
|
|
Loading…
Reference in a new issue