mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 21:20:12 +00:00
11 lines
592 B
Diff
11 lines
592 B
Diff
--- a/net/minecraft/block/BeehiveBlock.java
|
|
+++ b/net/minecraft/block/BeehiveBlock.java
|
|
@@ -85,6 +85,7 @@
|
|
List<BeeEntity> list = p_226881_1_.func_217357_a(BeeEntity.class, (new AxisAlignedBB(p_226881_2_)).func_72314_b(8.0D, 6.0D, 8.0D));
|
|
if (!list.isEmpty()) {
|
|
List<PlayerEntity> list1 = p_226881_1_.func_217357_a(PlayerEntity.class, (new AxisAlignedBB(p_226881_2_)).func_72314_b(8.0D, 6.0D, 8.0D));
|
|
+ if (list1.isEmpty()) return; //Forge: Prevent Error when no players are around.
|
|
int i = list1.size();
|
|
|
|
for(BeeEntity beeentity : list) {
|