Files
Purpur/patches/server/0098-Make-bees-drop-out-of-world-if-they-go-below-Y-0.patch
William Blake Galbreath 7ab3d06970 Fix MC-167279
2020-01-26 17:10:23 -06:00

25 lines
862 B
Diff

From 321d73f791b41633866894426cb73ec98ad06757 Mon Sep 17 00:00:00 2001
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
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