diff options
author | Max Lee <[email protected]> | 2021-06-05 09:07:35 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-05 10:07:35 +0200 |
commit | 8fd4e70db71745fc18dd5dd3ef921a0970ba7b9b (patch) | |
tree | 594d322f5e6212e5f997956ed00f9abbb7f37e58 /Spigot-Server-Patches/0665-added-option-to-disable-pathfinding-updates-on-block.patch | |
parent | 7ad8498c32699fbaffa2c90f997b46ab4d139a38 (diff) | |
download | Paper-8fd4e70db71745fc18dd5dd3ef921a0970ba7b9b.tar.gz Paper-8fd4e70db71745fc18dd5dd3ef921a0970ba7b9b.zip |
Improve seed based feature search to not load chunk (#5760)
This is done by returning the center location of the chunk at the height
of the input location when the target chunk isn't loaded already which
is exact enough for most use cases and will get more precise once the
player is close enough for the chunk being loaded anyways.
As this might lead to less precise locations a config option to enable
the sync loading of the chunks is provided.
Diffstat (limited to 'Spigot-Server-Patches/0665-added-option-to-disable-pathfinding-updates-on-block.patch')
-rw-r--r-- | Spigot-Server-Patches/0665-added-option-to-disable-pathfinding-updates-on-block.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Spigot-Server-Patches/0665-added-option-to-disable-pathfinding-updates-on-block.patch b/Spigot-Server-Patches/0665-added-option-to-disable-pathfinding-updates-on-block.patch index 8b4e9bfbd5..972a1dc051 100644 --- a/Spigot-Server-Patches/0665-added-option-to-disable-pathfinding-updates-on-block.patch +++ b/Spigot-Server-Patches/0665-added-option-to-disable-pathfinding-updates-on-block.patch @@ -5,10 +5,10 @@ Subject: [PATCH] added option to disable pathfinding updates on block changes diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java -index 1ceacb6bbfe99069763845a8aef48a3fb4841e32..d2f6e1308a4dfec663770e2c7f4de0cf22402a97 100644 +index cfe617e1a08b9c6e6c12bfe89bc9effd819eaff1..f1d384d2e235c52a00f4b6d5643ef3c1d163e94b 100644 --- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java +++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java -@@ -799,4 +799,9 @@ public class PaperWorldConfig { +@@ -801,4 +801,9 @@ public class PaperWorldConfig { private void enderDragonsDeathAlwaysPlacesDragonEgg() { enderDragonsDeathAlwaysPlacesDragonEgg = getBoolean("ender-dragons-death-always-places-dragon-egg", enderDragonsDeathAlwaysPlacesDragonEgg); } @@ -19,7 +19,7 @@ index 1ceacb6bbfe99069763845a8aef48a3fb4841e32..d2f6e1308a4dfec663770e2c7f4de0cf + } } diff --git a/src/main/java/net/minecraft/server/level/WorldServer.java b/src/main/java/net/minecraft/server/level/WorldServer.java -index c7a661d4f43fad04ebada1bbebf4e4274fc9c452..325eba4e30ddcdfd038a215fbfde3bdc3e7c9b2a 100644 +index 9720f60d6a58df5f5a9b2c92e2209537aab7f010..fd204ab68d8245503c0a8c4e7ce1a0a6bac7d138 100644 --- a/src/main/java/net/minecraft/server/level/WorldServer.java +++ b/src/main/java/net/minecraft/server/level/WorldServer.java @@ -1684,6 +1684,7 @@ public class WorldServer extends World implements GeneratorAccessSeed { |