From d4e7128695bb1e09a59aa77dc3dfc72ab21a390e Mon Sep 17 00:00:00 2001 From: William Blake Galbreath Date: Sun, 5 Jan 2020 19:23:10 -0600 Subject: [PATCH] Prevent bees loading chunks checking hive position --- ...oading-chunks-checking-hive-position.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 patches/server/0099-Prevent-bees-loading-chunks-checking-hive-position.patch diff --git a/patches/server/0099-Prevent-bees-loading-chunks-checking-hive-position.patch b/patches/server/0099-Prevent-bees-loading-chunks-checking-hive-position.patch new file mode 100644 index 000000000..8293d26cc --- /dev/null +++ b/patches/server/0099-Prevent-bees-loading-chunks-checking-hive-position.patch @@ -0,0 +1,24 @@ +From 3ed352531aa30fe7e9e90a625f40e83831e281f6 Mon Sep 17 00:00:00 2001 +From: William Blake Galbreath +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 +