mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-04-21 18:58:16 +02:00
do not the rabbit while riding
This commit is contained in:
@@ -2340,7 +2340,7 @@ index 813247e74bddfa600b4d0bcbefd44209dfdae35c..d368954be1fc54052c29dd102e97404a
|
||||
|
||||
public float getStandingAnimationScale(final float a) {
|
||||
diff --git a/net/minecraft/world/entity/animal/rabbit/Rabbit.java b/net/minecraft/world/entity/animal/rabbit/Rabbit.java
|
||||
index ab7e618ab8ef872d794f1ff82de881a5bca04bc5..fa6fd57be6e4a36e701eb61634440a79b47bbd94 100644
|
||||
index ab7e618ab8ef872d794f1ff82de881a5bca04bc5..06fbd4daa0a0a9482a5d721bbbf11c90726f4263 100644
|
||||
--- a/net/minecraft/world/entity/animal/rabbit/Rabbit.java
|
||||
+++ b/net/minecraft/world/entity/animal/rabbit/Rabbit.java
|
||||
@@ -108,6 +108,7 @@ public class Rabbit extends Animal {
|
||||
@@ -2435,6 +2435,15 @@ index ab7e618ab8ef872d794f1ff82de881a5bca04bc5..fa6fd57be6e4a36e701eb61634440a79
|
||||
if (this.jumpDelayTicks > 0) {
|
||||
this.jumpDelayTicks--;
|
||||
}
|
||||
@@ -487,7 +548,7 @@ public class Rabbit extends Animal {
|
||||
}
|
||||
|
||||
private boolean shouldPlayIdleAnimation() {
|
||||
- return this.idleAnimationTimeout <= 0 && (this.getLeashData() == null || this.getLeashData().leashHolder == null) && !this.isNoAi();
|
||||
+ return getRider() != null && this.idleAnimationTimeout <= 0 && (this.getLeashData() == null || this.getLeashData().leashHolder == null) && !this.isNoAi(); // Purpur - Ridables
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -559,7 +620,7 @@ public class Rabbit extends Animal {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user