From 7ab3d0697021ec3b8eb179772324424a7bd4d230 Mon Sep 17 00:00:00 2001 From: William Blake Galbreath Date: Sun, 26 Jan 2020 17:10:23 -0600 Subject: [PATCH] Fix MC-167279 --- ...op-out-of-world-if-they-go-below-Y-0.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 patches/server/0098-Make-bees-drop-out-of-world-if-they-go-below-Y-0.patch diff --git a/patches/server/0098-Make-bees-drop-out-of-world-if-they-go-below-Y-0.patch b/patches/server/0098-Make-bees-drop-out-of-world-if-they-go-below-Y-0.patch new file mode 100644 index 000000000..5297e5a2d --- /dev/null +++ b/patches/server/0098-Make-bees-drop-out-of-world-if-they-go-below-Y-0.patch @@ -0,0 +1,24 @@ +From 321d73f791b41633866894426cb73ec98ad06757 Mon Sep 17 00:00:00 2001 +From: William Blake Galbreath +Date: Sun, 26 Jan 2020 16:19:09 -0600 +Subject: [PATCH] Make bees drop out of world if they go below Y 0 + +--- + src/main/java/net/minecraft/server/EntityBee.java | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/main/java/net/minecraft/server/EntityBee.java b/src/main/java/net/minecraft/server/EntityBee.java +index 24b22741db..61d3663297 100644 +--- a/src/main/java/net/minecraft/server/EntityBee.java ++++ b/src/main/java/net/minecraft/server/EntityBee.java +@@ -1263,6 +1263,7 @@ public class EntityBee extends EntityAnimal implements EntityBird { + } + + protected void tick() { ++ if (entity.locY() <= 0.0D) entity.setNoGravity(false); // Purpur + super.a(); // tick + } + +-- +2.24.0 +