mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
SPIGOT-5866: Beehive unknown TargetReason
By: md_5 <git@md-5.net>
This commit is contained in:
parent
87462b8620
commit
e477e8caec
1 changed files with 11 additions and 0 deletions
11
paper-server/nms-patches/BlockBeehive.patch
Normal file
11
paper-server/nms-patches/BlockBeehive.patch
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue