Fix Village Loading Doors fix, add config option, hopefully fix farms

The patch was previously applied wrong, and still caused chunk loads.

Now, we will prevent it again, but also added a config option to
disable this optimization.

However, I also updated it so that doors are not removed if the chunk
the door is in is unloaded, so this should avoid breaking farms.

Fixes #1506
This commit is contained in:
Aikar
2018-09-29 12:03:11 -04:00
parent aa463a9b85
commit b3416da15e
9 changed files with 80 additions and 34 deletions

View File

@@ -5,12 +5,12 @@ Subject: [PATCH] Make shield blocking delay configurable
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
index af6b97708a..c0eccc22b7 100644
index a005c8c4ec..bd4cca26c7 100644
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
@@ -0,0 +0,0 @@ public class PaperWorldConfig {
disableEnderpearlExploit = getBoolean("game-mechanics.disable-unloaded-chunk-enderpearl-exploit", disableEnderpearlExploit);
log("Disable Unloaded Chunk Enderpearl Exploit: " + (disableEnderpearlExploit ? "enabled" : "disabled"));
log("Villages can load chunks - Warning this can cause intense TPS loss. Strongly consider disabling this.");
}
}
+
+ public int shieldBlockingDelay = 5;