mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
b3a8254758
By: md_5 <git@md-5.net>
11 lines
591 B
Diff
11 lines
591 B
Diff
--- a/net/minecraft/world/level/block/BlockBeehive.java
|
|
+++ b/net/minecraft/world/level/block/BlockBeehive.java
|
|
@@ -108,7 +108,7 @@
|
|
EntityBee entitybee = (EntityBee) iterator.next();
|
|
|
|
if (entitybee.getGoalTarget() == null) {
|
|
- entitybee.setGoalTarget((EntityLiving) list1.get(world.random.nextInt(i)));
|
|
+ entitybee.setGoalTarget((EntityLiving) list1.get(world.random.nextInt(i)), org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER, true); // CraftBukkit
|
|
}
|
|
}
|
|
}
|