2022-12-23 17:51:24 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: BillyGalbreath <blake.galbreath@gmail.com>
|
|
|
|
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
|
2024-01-23 18:01:39 +01:00
|
|
|
index 4d5cfaa58bdf4e6cb975134004d14c591f6e85fa..d90da2f9e4d6214577bc81bd6c70ba8593788898 100644
|
2022-12-23 17:51:24 +01:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/monster/Spider.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/monster/Spider.java
|
2023-09-22 17:51:48 +02:00
|
|
|
@@ -86,7 +86,7 @@ public class Spider extends Monster {
|
2022-12-23 17:51:24 +01:00
|
|
|
public void tick() {
|
|
|
|
super.tick();
|
2023-06-08 10:47:19 +02:00
|
|
|
if (!this.level().isClientSide) {
|
2022-12-23 17:51:24 +01:00
|
|
|
- this.setClimbing(this.horizontalCollision);
|
2024-01-23 18:01:39 +01:00
|
|
|
+ this.setClimbing(this.horizontalCollision && (this.level().paperConfig().entities.behavior.allowSpiderWorldBorderClimbing)); // Paper - Add config option for spider worldborder climbing
|
2022-12-23 17:51:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|