Skip to content

Commit

Permalink
pathfinding favor
Browse files Browse the repository at this point in the history
  • Loading branch information
yurisuika committed Aug 29, 2023
1 parent 53014ba commit 95e1838
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public abstract class BeeEntityMixin {
@Inject(method = "getPathfindingFavor", at = @At("HEAD"), cancellable = true)
private void injectGetPathfindingFavor(BlockPos pos, WorldView world, CallbackInfoReturnable<Float> cir) {
if (world.getBlockState(pos).getBlock() instanceof LeavesBlock) {
cir.setReturnValue(0.0F);
cir.setReturnValue(2.0F);
}
}

Expand Down

0 comments on commit 95e1838

Please sign in to comment.