From e8a2911e02d818fda7491dc1b2e5ea3ade222383 Mon Sep 17 00:00:00 2001 From: yurisuika Date: Mon, 28 Aug 2023 17:09:22 -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 79b44cc3..5a6f882a 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 @@ -20,7 +20,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); } }