diff --git a/paper-server/patches/sources/net/minecraft/world/entity/ai/sensing/SecondaryPoiSensor.java.patch b/paper-server/patches/sources/net/minecraft/world/entity/ai/sensing/SecondaryPoiSensor.java.patch new file mode 100644 index 000000000000..2fe69549aaed --- /dev/null +++ b/paper-server/patches/sources/net/minecraft/world/entity/ai/sensing/SecondaryPoiSensor.java.patch @@ -0,0 +1,10 @@ +--- a/net/minecraft/world/entity/ai/sensing/SecondaryPoiSensor.java ++++ b/net/minecraft/world/entity/ai/sensing/SecondaryPoiSensor.java +@@ -27,6 +_,7 @@ + List jobSites = Lists.newArrayList(); + int horizontalSearch = 4; + ++ if (!body.getVillagerData().profession().value().secondaryPoi().isEmpty()) // Paper - Perf: Only scan world if Villager profession has secondary POI + for (int x = -4; x <= 4; x++) { + for (int y = -2; y <= 2; y++) { + for (int z = -4; z <= 4; z++) {