13
0
geforkt von Mirrors/Paper

Add config option for spider worldborder climbing

Dieser Commit ist enthalten in:
BillyGalbreath 2022-10-27 15:35:47 +02:00
Ursprung 18a23db6f2
Commit 9773687ae3

Datei anzeigen

@ -1,5 +1,14 @@
--- a/net/minecraft/world/entity/monster/Spider.java
+++ b/net/minecraft/world/entity/monster/Spider.java
@@ -82,7 +82,7 @@
public void tick() {
super.tick();
if (!this.level().isClientSide) {
- this.setClimbing(this.horizontalCollision);
+ this.setClimbing(this.horizontalCollision && (this.level().paperConfig().entities.behavior.allowSpiderWorldBorderClimbing || !(ca.spottedleaf.moonrise.patches.collisions.CollisionUtil.isCollidingWithBorder(this.level().getWorldBorder(), this.getBoundingBox().inflate(ca.spottedleaf.moonrise.patches.collisions.CollisionUtil.COLLISION_EPSILON)) && this.level().getWorldBorder().isInsideCloseToBorder(this, this.getBoundingBox())))); // Paper - Add config option for spider worldborder climbing (Inflate by +EPSILON as collision will just barely place us outside border)
}
}
@@ -172,7 +172,7 @@
Holder<MobEffect> holder = entityspider_groupdataspider.effect;