2022-06-09 10:51:45 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
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/net/minecraft/world/level/levelgen/PatrolSpawner.java b/src/main/java/net/minecraft/world/level/levelgen/PatrolSpawner.java
|
2024-10-23 15:02:51 +02:00
|
|
|
index 04e108633068c2a1a88a35995c2999701ef7bc3b..8837db46ced2412942949a3c6f81ec7d9a0bacda 100644
|
2022-06-09 10:51:45 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/levelgen/PatrolSpawner.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/levelgen/PatrolSpawner.java
|
2024-04-24 08:05:14 +02:00
|
|
|
@@ -24,6 +24,7 @@ public class PatrolSpawner implements CustomSpawner {
|
2022-06-09 10:51:45 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public int tick(ServerLevel world, boolean spawnMonsters, boolean spawnAnimals) {
|
2024-01-21 12:53:04 +01:00
|
|
|
+ if (world.paperConfig().entities.behavior.pillagerPatrols.disable) return 0; // Paper - Add option to disable pillager patrols
|
2022-06-09 10:51:45 +02:00
|
|
|
if (!spawnMonsters) {
|
|
|
|
return 0;
|
|
|
|
} else if (!world.getGameRules().getBoolean(GameRules.RULE_DO_PATROL_SPAWNING)) {
|