2020-03-31 09:54:42 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2020-04-29 10:14:47 +02:00
|
|
|
From: chickeneer <emcchickeneer@gmail.com>
|
2020-03-31 09:54:42 +02:00
|
|
|
Date: Tue, 17 Mar 2020 14:18:50 -0500
|
|
|
|
Subject: [PATCH] Do not allow bees to load chunks for beehives
|
|
|
|
|
|
|
|
|
2021-03-16 08:19:45 +01:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/animal/EntityBee.java b/src/main/java/net/minecraft/world/entity/animal/EntityBee.java
|
2020-05-06 11:48:49 +02:00
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
2021-03-16 08:19:45 +01:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/animal/EntityBee.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/animal/EntityBee.java
|
2020-06-26 01:38:24 +02:00
|
|
|
@@ -0,0 +0,0 @@ public class EntityBee extends EntityAnimal implements IEntityAngerable, EntityB
|
2020-03-31 09:54:42 +02:00
|
|
|
if (this.hivePos == null) {
|
|
|
|
return false;
|
|
|
|
} else {
|
|
|
|
+ if (!this.world.isLoadedAndInBounds(hivePos)) return false; // Paper
|
|
|
|
TileEntity tileentity = this.world.getTileEntity(this.hivePos);
|
|
|
|
|
|
|
|
return tileentity instanceof TileEntityBeehive && ((TileEntityBeehive) tileentity).d();
|
2020-06-26 01:38:24 +02:00
|
|
|
@@ -0,0 +0,0 @@ public class EntityBee extends EntityAnimal implements IEntityAngerable, EntityB
|
2020-03-31 09:54:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
private boolean i(BlockPosition blockposition) {
|
|
|
|
+ if (!this.world.isLoadedAndInBounds(blockposition)) return false; // Paper
|
|
|
|
TileEntity tileentity = this.world.getTileEntity(blockposition);
|
|
|
|
|
|
|
|
return tileentity instanceof TileEntityBeehive ? !((TileEntityBeehive) tileentity).isFull() : false;
|
2020-06-26 01:38:24 +02:00
|
|
|
@@ -0,0 +0,0 @@ public class EntityBee extends EntityAnimal implements IEntityAngerable, EntityB
|
2020-03-31 09:54:42 +02:00
|
|
|
@Override
|
|
|
|
public boolean g() {
|
2020-08-25 04:22:08 +02:00
|
|
|
if (EntityBee.this.hasHivePos() && EntityBee.this.fd() && EntityBee.this.hivePos.a((IPosition) EntityBee.this.getPositionVector(), 2.0D)) {
|
2020-03-31 09:54:42 +02:00
|
|
|
+ if (!EntityBee.this.world.isLoadedAndInBounds(EntityBee.this.hivePos)) return false; // Paper
|
|
|
|
TileEntity tileentity = EntityBee.this.world.getTileEntity(EntityBee.this.hivePos);
|
|
|
|
|
|
|
|
if (tileentity instanceof TileEntityBeehive) {
|
2020-06-26 01:38:24 +02:00
|
|
|
@@ -0,0 +0,0 @@ public class EntityBee extends EntityAnimal implements IEntityAngerable, EntityB
|
2020-03-31 09:54:42 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void c() {
|
|
|
|
+ if (!EntityBee.this.world.isLoadedAndInBounds(EntityBee.this.hivePos)) return; // Paper
|
|
|
|
TileEntity tileentity = EntityBee.this.world.getTileEntity(EntityBee.this.hivePos);
|
|
|
|
|
|
|
|
if (tileentity instanceof TileEntityBeehive) {
|