fix no grav bee patch for world height changes
This commit is contained in:
parent
53081c6e5f
commit
18a839d265
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ Subject: [PATCH] Bees get gravity in void. Fixes MC-167279
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/world/entity/animal/Bee.java b/src/main/java/net/minecraft/world/entity/animal/Bee.java
|
diff --git a/src/main/java/net/minecraft/world/entity/animal/Bee.java b/src/main/java/net/minecraft/world/entity/animal/Bee.java
|
||||||
index f3ba4b26553915917c79f013ed9dd7c87d9f65a4..3d049e43c8ea85597e98e9dad61c8d4c49b01b1c 100644
|
index f3ba4b26553915917c79f013ed9dd7c87d9f65a4..50724baf5eb207ce44be62509f9a024d9a0e10f3 100644
|
||||||
--- a/src/main/java/net/minecraft/world/entity/animal/Bee.java
|
--- a/src/main/java/net/minecraft/world/entity/animal/Bee.java
|
||||||
+++ b/src/main/java/net/minecraft/world/entity/animal/Bee.java
|
+++ b/src/main/java/net/minecraft/world/entity/animal/Bee.java
|
||||||
@@ -143,7 +143,22 @@ public class Bee extends Animal implements NeutralMob, FlyingAnimal {
|
@@ -143,7 +143,22 @@ public class Bee extends Animal implements NeutralMob, FlyingAnimal {
|
||||||
|
@ -21,7 +21,7 @@ index f3ba4b26553915917c79f013ed9dd7c87d9f65a4..3d049e43c8ea85597e98e9dad61c8d4c
|
||||||
+
|
+
|
||||||
+ @Override
|
+ @Override
|
||||||
+ public void tick() {
|
+ public void tick() {
|
||||||
+ if (this.mob.getY() <= 0) {
|
+ if (this.mob.getY() <= Bee.this.level.getMinBuildHeight()) {
|
||||||
+ this.mob.setNoGravity(false);
|
+ this.mob.setNoGravity(false);
|
||||||
+ }
|
+ }
|
||||||
+ super.tick();
|
+ super.tick();
|
||||||
|
|
Loading…
Reference in a new issue