mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Fix MC-167279
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user