aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0792-Add-config-option-for-spider-worldborder-climbing.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0792-Add-config-option-for-spider-worldborder-climbing.patch')
-rw-r--r--patches/server/0792-Add-config-option-for-spider-worldborder-climbing.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0792-Add-config-option-for-spider-worldborder-climbing.patch b/patches/server/0792-Add-config-option-for-spider-worldborder-climbing.patch
new file mode 100644
index 0000000000..b10bcacd3c
--- /dev/null
+++ b/patches/server/0792-Add-config-option-for-spider-worldborder-climbing.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: BillyGalbreath <[email protected]>
+Date: Thu, 27 Oct 2022 15:35:47 +0200
+Subject: [PATCH] Add config option for spider worldborder climbing
+
+
+diff --git a/src/main/java/net/minecraft/world/entity/monster/Spider.java b/src/main/java/net/minecraft/world/entity/monster/Spider.java
+index c80019f0c9f814c5259b4d3ec2d8a85669dc728f..6006480d9f6d60bb7b5628eabe6740013066cde4 100644
+--- a/src/main/java/net/minecraft/world/entity/monster/Spider.java
++++ b/src/main/java/net/minecraft/world/entity/monster/Spider.java
+@@ -82,7 +82,7 @@ public class Spider extends Monster {
+ public void tick() {
+ super.tick();
+ if (!this.level().isClientSide) {
+- this.setClimbing(this.horizontalCollision);
++ this.setClimbing(this.horizontalCollision && (this.level().paperConfig().entities.behavior.allowSpiderWorldBorderClimbing)); // Paper - Add config option for spider worldborder climbing
+ }
+
+ }