SPIGOT-5866: Beehive unknown TargetReason

This commit is contained in:
md_5 2020-06-28 08:56:12 +10:00
parent 983305bb4a
commit f2cbce30d9
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/net/minecraft/server/BlockBeehive.java
+++ b/net/minecraft/server/BlockBeehive.java
@@ -55,7 +55,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
}
}
}