geforkt von Mirrors/Paper
Add config option for spider worldborder climbing
Dieser Commit ist enthalten in:
Ursprung
18a23db6f2
Commit
9773687ae3
@ -1,5 +1,14 @@
|
|||||||
--- a/net/minecraft/world/entity/monster/Spider.java
|
--- a/net/minecraft/world/entity/monster/Spider.java
|
||||||
+++ b/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 @@
|
@@ -172,7 +172,7 @@
|
||||||
Holder<MobEffect> holder = entityspider_groupdataspider.effect;
|
Holder<MobEffect> holder = entityspider_groupdataspider.effect;
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren