Files
Purpur/patches/server/0099-Prevent-bees-loading-chunks-checking-hive-position.patch
2020-01-05 19:23:10 -06:00

25 lines
1.1 KiB
Diff

From 3ed352531aa30fe7e9e90a625f40e83831e281f6 Mon Sep 17 00:00:00 2001
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
Date: Sun, 5 Jan 2020 19:21:52 -0600
Subject: [PATCH] Prevent bees loading chunks checking hive position
---
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 50b3535826..eed821ae26 100644
--- a/src/main/java/net/minecraft/server/EntityBee.java
+++ b/src/main/java/net/minecraft/server/EntityBee.java
@@ -399,6 +399,7 @@ public class EntityBee extends EntityAnimal implements EntityBird {
if (!this.hasHivePos()) {
return false;
} else {
+ if (world.getChunkIfLoaded(hivePos) == null) return true; // Purpur - just assume the hive is still there, no need to load the chunk(s)
TileEntity tileentity = this.world.getTileEntity(this.hivePos);
return tileentity != null && tileentity.getTileType() == TileEntityTypes.BEEHIVE;
--
2.24.0