diff options
Diffstat (limited to 'patches/server/0571-added-option-to-disable-pathfinding-updates-on-block.patch')
-rw-r--r-- | patches/server/0571-added-option-to-disable-pathfinding-updates-on-block.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/patches/server/0571-added-option-to-disable-pathfinding-updates-on-block.patch b/patches/server/0571-added-option-to-disable-pathfinding-updates-on-block.patch new file mode 100644 index 0000000000..5fc269d9a0 --- /dev/null +++ b/patches/server/0571-added-option-to-disable-pathfinding-updates-on-block.patch @@ -0,0 +1,26 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: lukas81298 <[email protected]> +Date: Mon, 25 Jan 2021 14:37:57 +0100 +Subject: [PATCH] added option to disable pathfinding updates on block changes + + +diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java +index ef4b5ff8f5163effd9526c67e3d9750e8a3f561b..60e86357327f7bd7141d421b2d6d52d433118f1f 100644 +--- a/src/main/java/net/minecraft/server/level/ServerLevel.java ++++ b/src/main/java/net/minecraft/server/level/ServerLevel.java +@@ -1529,6 +1529,7 @@ public class ServerLevel extends Level implements WorldGenLevel { + } + + this.getChunkSource().blockChanged(pos); ++ if(this.paperConfig().misc.updatePathfindingOnBlockUpdate) { // Paper - option to disable pathfinding updates + VoxelShape voxelshape = oldState.getCollisionShape(this, pos); + VoxelShape voxelshape1 = newState.getCollisionShape(this, pos); + +@@ -1570,6 +1571,7 @@ public class ServerLevel extends Level implements WorldGenLevel { + } + + } ++ } // Paper + } + + @Override |