mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
65bc2541a3
By: md_5 <git@md-5.net>
20 lines
1.2 KiB
Diff
20 lines
1.2 KiB
Diff
--- a/net/minecraft/world/level/block/BlockBeehive.java
|
|
+++ b/net/minecraft/world/level/block/BlockBeehive.java
|
|
@@ -119,7 +119,7 @@
|
|
if (entitybee.getTarget() == null) {
|
|
EntityHuman entityhuman = (EntityHuman) SystemUtils.getRandom(list1, world.random);
|
|
|
|
- entitybee.setTarget(entityhuman);
|
|
+ entitybee.setTarget(entityhuman, org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER, true); // CraftBukkit
|
|
}
|
|
}
|
|
}
|
|
@@ -287,7 +287,7 @@
|
|
ItemStack itemstack = new ItemStack(this);
|
|
|
|
itemstack.applyComponents(tileentitybeehive.collectComponents());
|
|
- itemstack.set(DataComponents.BLOCK_STATE, BlockItemStateProperties.EMPTY.with(BlockBeehive.HONEY_LEVEL, (Comparable) i));
|
|
+ itemstack.set(DataComponents.BLOCK_STATE, BlockItemStateProperties.EMPTY.with(BlockBeehive.HONEY_LEVEL, i)); // CraftBukkit - decompile error
|
|
EntityItem entityitem = new EntityItem(world, (double) blockposition.getX(), (double) blockposition.getY(), (double) blockposition.getZ(), itemstack);
|
|
|
|
entityitem.setDefaultPickUpDelay();
|