diff options
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/BeehiveBlock.java.patch')
-rw-r--r-- | patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/BeehiveBlock.java.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/BeehiveBlock.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/BeehiveBlock.java.patch new file mode 100644 index 0000000000..1b83368ec4 --- /dev/null +++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/BeehiveBlock.java.patch @@ -0,0 +1,22 @@ +--- a/net/minecraft/world/level/block/BeehiveBlock.java ++++ b/net/minecraft/world/level/block/BeehiveBlock.java +@@ -104,10 +111,15 @@ + return; + } + +- for (Bee bee : entitiesOfClass) { +- if (bee.getTarget() == null) { +- Player player = Util.getRandom(entitiesOfClass1, level.random); +- bee.setTarget(player); ++ Iterator iterator = list.iterator(); ++ ++ while (iterator.hasNext()) { ++ Bee entitybee = (Bee) iterator.next(); ++ ++ if (entitybee.getTarget() == null) { ++ Player entityhuman = (Player) Util.getRandom(list1, level.random); ++ ++ entitybee.setTarget(entityhuman, org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER, true); // CraftBukkit + } + } + } |