Skip to content

Commit

Permalink
Changed bee spawn location to be on player instead
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyyTV committed May 21, 2023
1 parent cebcf2e commit 283258c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public InteractionResult useOn(UseOnContext context) {
SoundEvents.BEEHIVE_WORK, SoundSource.BLOCKS, 1.0F, 1F);
if (!player.isShiftKeyDown()) {
Bee bee = new Bee(EntityType.BEE, world);
bee.setPos(pos.getX(), pos.getY(), pos.getZ());
bee.setPos(player.getX(), player.getY(), player.getZ());
if (world.random.nextInt(5) + 1 == 5) {
world.addFreshEntity(bee);
}
Expand Down

0 comments on commit 283258c

Please sign in to comment.