2020-01-18 17:28:32 +00:00
|
|
|
From 2c72901a7914221bfc9e2776b7ff7d885f40ef8c Mon Sep 17 00:00:00 2001
|
2019-11-24 07:10:15 +00:00
|
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
|
|
Date: Wed, 9 Oct 2019 21:46:15 -0500
|
|
|
|
Subject: [PATCH] Add option to disable pillager patrols
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2020-01-18 17:28:32 +00:00
|
|
|
index c37a0f035..3bbf77a8e 100644
|
2019-11-24 07:10:15 +00:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2020-01-18 17:28:32 +00:00
|
|
|
@@ -628,4 +628,9 @@ public class PaperWorldConfig {
|
2019-11-24 07:10:15 +00:00
|
|
|
private void generatorSettings() {
|
|
|
|
generateFlatBedrock = getBoolean("generator-settings.flat-bedrock", false);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean disablePillagerPatrols = false;
|
|
|
|
+ private void pillagerSettings() {
|
|
|
|
+ disablePillagerPatrols = getBoolean("game-mechanics.disable-pillager-patrols", disablePillagerPatrols);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/MobSpawnerPatrol.java b/src/main/java/net/minecraft/server/MobSpawnerPatrol.java
|
2020-01-18 17:28:32 +00:00
|
|
|
index 55fc19fdc..38de3a618 100644
|
2019-11-24 07:10:15 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/MobSpawnerPatrol.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/MobSpawnerPatrol.java
|
|
|
|
@@ -9,6 +9,7 @@ public class MobSpawnerPatrol {
|
|
|
|
public MobSpawnerPatrol() {}
|
|
|
|
|
|
|
|
public int a(WorldServer worldserver, boolean flag, boolean flag1) {
|
|
|
|
+ if (worldserver.paperConfig.disablePillagerPatrols) return 0; // Paper
|
|
|
|
if (!flag) {
|
|
|
|
return 0;
|
|
|
|
} else {
|
|
|
|
--
|
2020-01-18 17:28:32 +00:00
|
|
|
2.25.0.windows.1
|
2019-11-24 07:10:15 +00:00
|
|
|
|