aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/unapplied/server/0567-Config-option-for-Piglins-guarding-chests.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-12-03 17:58:41 +0100
committerNassim Jahnke <[email protected]>2024-12-03 17:58:41 +0100
commitc0a3d51ab35930e410fcd9752ceaff6c3f581c24 (patch)
treef53076a8b0787d2f544f73f468df94619e5eb1a5 /patches/unapplied/server/0567-Config-option-for-Piglins-guarding-chests.patch
parentda7138233f6392e791d790d1c3407414c855f9c2 (diff)
downloadPaper-c0a3d51ab35930e410fcd9752ceaff6c3f581c24.tar.gz
Paper-c0a3d51ab35930e410fcd9752ceaff6c3f581c24.zip
Start update, apply API patches
Diffstat (limited to 'patches/unapplied/server/0567-Config-option-for-Piglins-guarding-chests.patch')
-rw-r--r--patches/unapplied/server/0567-Config-option-for-Piglins-guarding-chests.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/unapplied/server/0567-Config-option-for-Piglins-guarding-chests.patch b/patches/unapplied/server/0567-Config-option-for-Piglins-guarding-chests.patch
new file mode 100644
index 0000000000..32c61a7ec0
--- /dev/null
+++ b/patches/unapplied/server/0567-Config-option-for-Piglins-guarding-chests.patch
@@ -0,0 +1,18 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Jason Penilla <[email protected]>
+Date: Wed, 2 Dec 2020 03:07:58 -0800
+Subject: [PATCH] Config option for Piglins guarding chests
+
+
+diff --git a/src/main/java/net/minecraft/world/entity/monster/piglin/PiglinAi.java b/src/main/java/net/minecraft/world/entity/monster/piglin/PiglinAi.java
+index 55868c82bf8bd61ce3494aa9f363c20c88ec6aa6..4f3048615a34fc2c067e09aec76af94cde6a74e0 100644
+--- a/src/main/java/net/minecraft/world/entity/monster/piglin/PiglinAi.java
++++ b/src/main/java/net/minecraft/world/entity/monster/piglin/PiglinAi.java
+@@ -478,6 +478,7 @@ public class PiglinAi {
+ }
+
+ public static void angerNearbyPiglins(ServerLevel world, Player player, boolean blockOpen) {
++ if (!player.level().paperConfig().entities.behavior.piglinsGuardChests) return; // Paper - Config option for Piglins guarding chests
+ List<Piglin> list = player.level().getEntitiesOfClass(Piglin.class, player.getBoundingBox().inflate(16.0D));
+
+ list.stream().filter(PiglinAi::isIdle).filter((entitypiglin) -> {