Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-5866: Beehive unknown TargetReason
Dieser Commit ist enthalten in:
Ursprung
983305bb4a
Commit
f2cbce30d9
11
nms-patches/BlockBeehive.patch
Normale Datei
11
nms-patches/BlockBeehive.patch
Normale Datei
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren