mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-19 17:37:42 +01:00
Prevent bees loading chunks checking hive position
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user