From 76b845c7a227481da3d5084d6c25d1712dbca8be Mon Sep 17 00:00:00 2001 From: yurisuika Date: Mon, 28 Aug 2023 17:09:13 -0700 Subject: [PATCH] pathfinding favor --- .../yurisuika/blossom/mixin/entity/passive/BeeEntityMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/yurisuika/blossom/mixin/entity/passive/BeeEntityMixin.java b/src/main/java/dev/yurisuika/blossom/mixin/entity/passive/BeeEntityMixin.java index 93d76179..200dffa8 100644 --- a/src/main/java/dev/yurisuika/blossom/mixin/entity/passive/BeeEntityMixin.java +++ b/src/main/java/dev/yurisuika/blossom/mixin/entity/passive/BeeEntityMixin.java @@ -21,7 +21,7 @@ public abstract class BeeEntityMixin { @Inject(method = "getPathfindingFavor", at = @At("HEAD"), cancellable = true) private void injectGetPathfindingFavor(BlockPos pos, WorldView world, CallbackInfoReturnable cir) { if (world.getBlockState(pos).getBlock() instanceof LeavesBlock) { - cir.setReturnValue(0.0F); + cir.setReturnValue(2.0F); } }