From 18a839d265cfccddef565755e8763b3f4c903f4c Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Mon, 14 Jun 2021 08:19:29 -0700 Subject: [PATCH] fix no grav bee patch for world height changes --- .../0368-Bees-get-gravity-in-void.-Fixes-MC-167279.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/0368-Bees-get-gravity-in-void.-Fixes-MC-167279.patch b/patches/server/0368-Bees-get-gravity-in-void.-Fixes-MC-167279.patch index d42a9033b..aa3265d3a 100644 --- a/patches/server/0368-Bees-get-gravity-in-void.-Fixes-MC-167279.patch +++ b/patches/server/0368-Bees-get-gravity-in-void.-Fixes-MC-167279.patch @@ -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 -index f3ba4b26553915917c79f013ed9dd7c87d9f65a4..3d049e43c8ea85597e98e9dad61c8d4c49b01b1c 100644 +index f3ba4b26553915917c79f013ed9dd7c87d9f65a4..50724baf5eb207ce44be62509f9a024d9a0e10f3 100644 --- a/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 { @@ -21,7 +21,7 @@ index f3ba4b26553915917c79f013ed9dd7c87d9f65a4..3d049e43c8ea85597e98e9dad61c8d4c + + @Override + public void tick() { -+ if (this.mob.getY() <= 0) { ++ if (this.mob.getY() <= Bee.this.level.getMinBuildHeight()) { + this.mob.setNoGravity(false); + } + super.tick();